You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.