Possible Duplicate:
Stack,Static and Heap in C++
Hi guys,
I am currently preparing for interviews, and quite often i see questions like, where are "static" variables or where are "local"/"global" variables stored and im totally puzzled.
I'm aware of two kinds of memory: Stack and Heap. Other than this, are there any other types of memory, where different kind of variables are stored. At a few places, i even read something about "Data Segment", but i m not sure as to how these things map to each other. Can anyone provide me with any links/explanations to different types of memory and where all the different kinds of variables are stored, preferably related to C++.
Thanks, Chander