Where are the local, global, static, auto, register, extern, const, and volatile variables stored?
local variables can be stored either on the stack or in a data segment depending on whether they are auto or static. (if neither auto or static is explicitly specified, auto is assumed) global variables are stored in a data segment (unless the compiler can optimize them away, see const) and have visibility from the … Read more