C Pointers Question:

Download Job Interview Questions and Answers PDF

Explain null pointer?

C Pointers Interview Question
C Pointers Interview Question

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>

Download C Pointers Interview Questions And Answers PDF

Previous QuestionNext Question
Explain void pointer?Tell me what are bitwise shift operators?