Static memory allocation refers to memory that’s allocated at the compile time, rather than during runtime. As such, the memory location is fixed throughout the running of the program, and memory is allocated using a stack. Static memory allocation is handled automatically be the compiler, and generally used where variables have a fixed size.