NULL: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The NULL pointer value is a pointer that doesn't point to a data object. | |||
=== | === Value === | ||
NULL is defined as: | |||
#define NULL 0 // in C++ | |||
#define NULL (([[void]]*)0) /* in C */ | |||
[[Category:Constant]] | |||
Latest revision as of 16:26, 13 March 2018
The NULL pointer value is a pointer that doesn't point to a data object.
Value
NULL is defined as:
#define NULL 0 // in C++ #define NULL ((void*)0) /* in C */