In case of static memory allocation, memory is allocated at compile time, and memory can’t be increased while executing the program. It is used in the array.
The lifetime of a variable in static memory is the lifetime of a program.
BrindhaPrathaban Answered question June 28, 2023
Static memory allocation is a process in which memory for variables and data structures is reserved at compile time, before the program runs. This means that the size and location of memory blocks are fixed and cannot be changed at runtime.
BrindhaPrathaban Answered question June 28, 2023
