A
Abhishek Pandey
Hi All,
A basic question.
In C (and C++ also) global and static variables which are un-initalized are
guaranteed to be zero. This is because (as per my knowledge) they are all
stored in the uninitialized section of Data Segment (also called as BSS if I
am right) and that section is all set to NULL when the program starts.
My question is whether it is true for systems other than windows also ?
And
Where are static and global variables stored in other systems ?
Thanks
Abhishek
A basic question.
In C (and C++ also) global and static variables which are un-initalized are
guaranteed to be zero. This is because (as per my knowledge) they are all
stored in the uninitialized section of Data Segment (also called as BSS if I
am right) and that section is all set to NULL when the program starts.
My question is whether it is true for systems other than windows also ?
And
Where are static and global variables stored in other systems ?
Thanks
Abhishek