I know global constant will be stored in "Read Only" section. But What section of memory are static local constants stored in?
Asked
Active
Viewed 207 times
1
-
2You are wrong. Global constants MAY be stored in a read-only section, but it's not a given. – Hot Licks Jun 24 '13 at 21:51
-
What compiler and what output file format? – ouah Jun 24 '13 at 21:54
1 Answers
1
It depends on the compiler and the platform you're compiling for. They may be placed on the bottom of the stack, in the data segment of the primary thread, or simply on the heap, or even somewhere else.

Tom van der Woerdt
- 29,532
- 7
- 72
- 105