While reviewing a C program, you come across a scenario where a pointer is freed but later used in the program. What issue could this lead to?

  • Buffer Overflow
  • Memory Leak
  • Null Pointer Exception
  • Stack Overflow
Attempting to use a pointer after it has been freed can result in a null pointer exception, causing the program to crash or behave unpredictably.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *