Null object: Difference between revisions
Content added Content deleted
m (omit TI-BASIC) |
m (→{{header|C}}: clarification. C and C++ have differing ideas of what exactly NULL is. And in C it's a void *) |
||
Line 94: | Line 94: | ||
=={{header|C}}== |
=={{header|C}}== |
||
C's access to null is by way of a macro which simply evaluates to 0. |
C's access to null is by way of a macro which simply evaluates to <code>(void*) 0</code>. |
||
<lang c>#include <stdio.h> |
<lang c>#include <stdio.h> |
||
#include <stdlib.h> |
#include <stdlib.h> |