πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) malloc without free

Explanation: Not freeing dynamically allocated memory causes a leak.

Explanation by: Mr. Dubey
Not freeing dynamically allocated memory causes a leak.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate