File null.c.
int main() { void *p = NULL; return 0; }
I collect using gcc.
$ gcc null.c
I get an error.
null.c: In function 'main':
null.c: 2: error: 'NULL' undeclared (first use in this function)
What's wrong?
File null.c.
int main() { void *p = NULL; return 0; }
I collect using gcc.
$ gcc null.c
I get an error.
null.c: In function 'main':
null.c: 2: error: 'NULL' undeclared (first use in this function)
What's wrong?
Source: https://ru.stackoverflow.com/questions/304/
All Articles