Where are global variables stored in memory?
- by Jack
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++.