Corrects line to use "global" instead of "static" segment.
At the end of section 3.5, the book states that a static local variable "is allocated in the static segment along with global variables".
However, the previous section states that "globals segment contains global variables and local variables that are declared static." The "static segment contains immutable values, like string literals". This is confirmed by adding the static int to the code example in section 3.4 and observing that the address is 128 bits (0x70) larger than global.
Corrects line to use "global" instead of "static" segment.
At the end of section 3.5, the book states that a static local variable "is allocated in the static segment along with global variables".
However, the previous section states that "globals segment contains global variables and local variables that are declared static." The "static segment contains immutable values, like string literals". This is confirmed by adding the
static int
to the code example in section 3.4 and observing that the address is 128 bits (0x70) larger thanglobal
.