init variables

Eljay Love-Jensen eljay@adobe.com
Thu Oct 2 14:32:00 GMT 2003


Hi Max,

Static variables are initialized to zero.

Stack variables are initialized to garbage.

Heap variables are initialized to garbage (although the original extant from the OS used by the heap is initially initialized to zero, in all modern OS's).

No compiler option needed, it's automatic.

HTH,
--Eljay




More information about the Gcc-help mailing list