where are global and local variables stored in memory?
Anonymous
Initialized, non-const global variables are in the .data segment, Initialized constant global variables are in the .rodata segment, uninitialized global data are in the .bss segment, and local variables are on the stack.
Check out your Company Bowl for anonymous work chats.