1

I know global constant will be stored in "Read Only" section. But What section of memory are static local constants stored in?

martin clayton
  • 76,436
  • 32
  • 213
  • 198
IMPERFECT
  • 23
  • 4

1 Answers1

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