A static variable in C is one in which the memory is preallocated before the execution unit begins and lasts for the entire program unit.
A non-static variable in C will be allocated in the block in which it is contained, and destroyed outside that block.
Chat with our AI personalities