20
edits
Changes
→Invalid Memory Access
=Invalid Memory Access=
Here we are accessing c[1] which is already deleted upon . Upon analyzing this code we get invalid memory access error along with the line number where the invalid access occurs. There are screenshots of this analysis after this code.
<syntaxhighlight lang="cpp" line='line'>