C Pointers Question:

Explain null pointer?

Tweet Share WhatsApp

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 PDF Read All 31 C Pointers Questions
Previous QuestionNext Question
Explain void pointer?Tell me what are bitwise shift operators?