This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Stray pointers
- From: bruno at codata dot com dot br
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 23 Mar 2004 09:00:31 -0300 (BRT)
- Subject: Stray pointers
Hi,
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