This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
On NULL and 0
- From: "Paulo J. Matos" <pocm at soton dot ac dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 13 Mar 2007 13:52:00 +0000
- Subject: On NULL and 0
Hello,
When programming, due to my journeys through C++ recently, I've been
using 0 instead of NULL. Strangely gcc compilation doesn't warn me
about it. Is it ok to do this? (So far, I had no problems). Is there
anything I should be aware when using 0 instead of NULL in gcc code?
Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK