A

Admin • 833K Points
Coach

Q. A memory leak happens when

  • (A) a program allocates memory in heap but forgets to be allocate it
  • (B) when an un-assigned pointer is used is freed using free function
  • (C) when realloc() is called on a pointer that is not allocated
  • (D) A program allocates memory in stack
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.