Design Element
Comment on "Intro to Memory and Arrays in C"
by Stripes — Feb 22
Globals go in the data segment if they are initialized, otherwise they go in the unless they are const in which case they frequently go in the text (code) segment. Unless I got BSS and data reversed. And, of corse, that is all "implementation detail" and might be different on another perfectly legal and functional C based system.
Back to "Intro to Memory and Arrays in C"
Design Element

Copyright © Scott Stevenson 2004-2015