C Pointers Question:
Explain null pointer?

Answer:
There are times when it's necessary to have a pointer that doesn't point to anything. The macro NULL, defined in <stddef.h>, has a value that's guaranteed to be different from any valid pointer. NULL is a literal zero, possibly cast to void* or char*. Some people, notably C++ programmers, prefer to use 0 rather than NULL.<stddef.h>
Previous Question | Next Question |
Explain void pointer? | Tell me what are bitwise shift operators? |