Skip to content
serhij.zolotukhin edited this page May 10, 2026 · 1 revision

Static Memory allocation in C++ allocates size and location to a fixed variable. Static Memory allocation is done before the program is executed. In other words, memory is allocated during compile time. Hence, it is known as compile time allocation. The size and the location of the variable are fixed throughout the program.

My side bar

Clone this wiki locally