I was wondering if anyone can answer my question.
I am working on some code that has too many global variables. my question is this, Most of the globals are in .c file(why I have no idea I never wrote the code originally) and I have encountered so globals in the middle of the .c file. I know the scope of the globals but when is memory set aside for globals in .c files. is it at run time when the program starts or when the global is first used.
Any help would be appreciated



LinkBack URL
About LinkBacks




.