C / C++ FAQs & Programming Resources - ProkutFAQ : NullPointer

HomePage Recent Changes Recently Commented Login/Register

Revision [753]

Most recent edit made on 2008-10-21 11:17:35 by SharathAV

Additions:





Revision [752]

Edited on 2008-10-21 11:17:17 by SharathAV

Additions:
CategoryPointers




Revision [643]

Edited on 2007-11-13 10:27:07 by SharathAV

Deletions:
boaceltbasl
cacoac




Revision [611]

Edited on 2007-11-13 00:03:07 by RobolAmonc (unregistered user)

Additions:
boaceltbasl




Revision [549]

Edited on 2007-11-10 04:26:02 by EltliVarze (unregistered user)

Additions:
cacoac




Revision [420]

Edited on 2007-07-09 13:56:32 by SharathAV

Additions:

What is a null pointer? How is it different from NULL?

An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant.If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer, is guaranteed to compare unequal to a pointer to any object or function.
In other words null pointer constant is a syntactic element or a notation which facilitates initialization or assignment of a pointer type with the corresponding null pointer value.


Deletions:
An integer constant expression with the value 0, or such an expression cast to type
void *, is called a null pointer constant.55) If a null pointer constant is converted to a
pointer type, the resulting pointer, called a null pointer, is guaranteed to compare unequal to a pointer to any object or function.
In other words null pointer constant is a syntactic element or a notation which faciliatates initialization or assignment of a pointer type with the corresponding null pointer value.




Revision [415]

The oldest known version of this page was edited on 2007-07-06 06:22:32 by JagatSastry
Null pointer is a pointer that is guaranteed not to point to any object.
Note that it is not necessary for a null pointer to have all the bits set to zero.

NULL is a macro which defines a null pointer constant.
From C99:
An integer constant expression with the value 0, or such an expression cast to type
void *, is called a null pointer constant.55) If a null pointer constant is converted to a
pointer type, the resulting pointer, called a null pointer, is guaranteed to compare unequal to a pointer to any object or function.

In other words null pointer constant is a syntactic element or a notation which faciliatates initialization or assignment of a pointer type with the corresponding null pointer value.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in -0.0619 seconds