In a C program that processes large images, memory is allocated dynamically to hold pixel data. After processing, the memory is not explicitly freed before the program exits. What is the likely impact of this practice?

  • Data Corruption
  • Improved Memory Management
  • Increased Program Speed
  • Memory Leak
Failing to free dynamically allocated memory at program exit can lead to memory leaks, potentially causing the program to consume excessive resources and slow down over time.
Add your answer
Loading...

Leave a comment

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