Top

Discussion

Choose the statement which is incorrect with respect to dynamic memory allocation.

  • A.Memory is allocated in a less structured area of memory, known as heap
  • B.Used for unpredictable memory requirements
  • C.Execution of the program is faster than that of static memory allocation
  • D.Allocated memory can be changed during the run time of the program based on the requirement of the program

Answer: C

Execution of the program using dynamic memory allocation is slower than that using static memory allocation. This is because in dynamic memory allocation, the memory has to be allocated during run time. This slows down the execution of the program.

No comment is present. Be the first to comment.
Loading…

Post your comment