How they are stored is an implementation detail (depends on the compiler).
For example, in the GCC compiler, on most machines, read-only variables, constants, and jump tables are placed in the text section.
More Related Contents:
- Why are global variables always initialized to ‘0’, but not local variables? [duplicate]
- How to resolve a variable for char length? [closed]
- Dynamic allocation of an unknown matrix in C
- Can a const variable be used to declare the size of an array in C?
- What does this GCC error “… relocation truncated to fit…” mean?
- constant pointer vs pointer on a constant value [duplicate]
- Create a wrapper function for malloc and free in C
- Variably modified array at file scope
- What happens when a variable goes out of scope?
- __attribute__((const)) vs __attribute__((pure)) in GNU C
- How to place a variable at a given absolute address in memory (with GCC)
- Explain this implementation of malloc from the K&R book
- shared global variables in C
- const usage with pointers in C
- Confusion regarding modification of const variable using pointers
- Kernel zeroes memory?
- Why would you ever want to allocate memory on the heap rather than the stack? [duplicate]
- memory alignment within gcc structs
- Access a global static variable from another file in C
- Should useless type qualifiers on return types be used, for clarity?
- Why do I get different results when I dereference a pointer after freeing it?
- Is it ok to use “classic” malloc()/free() in Objective-C/iPhone apps?
- Memory usage of current process in C
- Deep Analysis of Const Qualifier in C
- Determining Stack Space with Visual Studio
- Is the sizeof(enum) == sizeof(int), always?
- Static vs global
- Is freeing allocated memory needed when exiting a program in C
- Is it safe to use realloc?
- Uninitialized variable in C [duplicate]