Pergunta de entrevista da empresa Intel Corporation

where are global and local variables stored in memory?

Respostas da entrevista

Sigiloso

24 de ago. de 2009

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.

1

Sigiloso

8 de jul. de 2009

static memory and the stack