Stray pointers
Tue Mar 23 14:58:00 GMT 2004


I was thinking about some problems involving programs written in c/c++ and
I don't realize why the compilers don't initialize every created pointer
to zero. Deleted pointers also are not automaticaly reassigned to zero
resulting in stray or dangling pointers (if the programmer do not take
care), and finally in possible crashes. Why this lack? Performance?
Thanks in advance,

Bruno A. Costa

More information about the Gcc-help mailing list