[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
PDA » iTV » CppThunk » LinkedList » CCPlusPlus » header » Andi Gutmans » userpage » QbasicFAQ_LoadingPrograms » GPL » NULL

NULL

NULL is a special pointer constant in C. If a pointer has a value of NULL, then it "doesn't point anywhere", it is not valid. Functions returning pointers usually return NULL on error.

It could be a bit confusing if you want to point to address 0x0, because in fact NULL's value is zero. However, under 32bit operating systems you don't need (and usually you are not able) to point to 0x0.

Use 0 rather than NULL [1]

'null' links

Reference



last edited (October 24, 2006) by bilderbikkel, Number of views: 9584, Current Rev: 8 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.