In C, Is a static variable stored on the stack or the heap??
- by CVS26
In C, Is a static variable stored on the stack or the heap??
I always thought that static vars are stored on the heap. (global lifetime)
I Got this doubt while answering the following Q:
http://stackoverflow.com/questions/2661369/storage-classes
Please clarify...