Where are global variables stored in memory?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-04-12T12:26:06Z Indexed on 2010/04/12 12:33 UTC
Read the original article Hit count: 139

Filed under:
|

Are they stored in the heap or there is separate area where they are stored? Similarly where are static variables stored in memory. They can't be stored in frames as they will get destroyed when the function returns.

PS - Can someone suggest a good book that talks about memory mapping for C/C++.

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++