Multiple choice

Which of the following memory allocations refers to the process of allocating memory at compile-time before the associated program executed, unlike dynamic memory allocation where memory is allocated as required at run-time?

  1. Stack memory allocation

  2. Static memory allocation

  3. Dynamic memory allocation

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Static memory allocation refers to the process of allocating memory at compile-time before the associated program is executed, unlike dynamic memory allocation where memory is allocated as required at run-time.