Monday, March 29, 2010

Where are variables stored?

Local Variables - Stack
Register variables - Register
Global & static variables - data segment.
dynamically created memory - Heap
C program instructions get stored - code segment
extern variables - data segment.

No comments:

Post a Comment