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
πŸ’¬ Discuss
βœ… Correct Answer: (A) a program allocates memory in heap but forgets to be allocate it

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
284
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
90%
Success Rate