A

Admin • 833K Points
Coach

Q. Which of the following will most likely cause a memory leak?

  • (A) malloc without free
  • (B) free before malloc
  • (C) free twice
  • (D) using calloc
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Not freeing dynamically allocated memory causes a leak.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.