Jump to content

NULL: Difference between revisions

From EDM2
Anakor (talk | contribs)
No edit summary
 
Ak120 (talk | contribs)
mNo edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== NULL ==
The NULL pointer value is a pointer that doesn't point to a data object.
Null Pointer value.


=== Type ===
=== Value ===
NULL is defined as:
#define NULL 0 // in C++
#define NULL (([[void]]*)0) /* in C */


Null is definied as:
[[Category:Constant]]
 
#define NULL 0          in C++
#define NULL (([[OS2 API:DataType:void|void]] *)0) in C

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 */