Null object: Difference between revisions
Content added Content deleted
(→{{header|C}}: Move a sentence from Undefined values#C that fits better here.) |
m (→{{header|C}}: clarify "pointer zero") |
||
Line 96:
Classic BASIC does have the concept of un-initialised or undefined variables.
=={{header|C}}==
C has the null pointer
There is a very common macro, <code>NULL</code>, which evaluates to <code>(void*) 0</code> or an equivalent value. NULL is compatible with all pointer types, including both data pointers and function pointers.
|