Q:

What is a NULL pointer?

0

What is a NULL pointer?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

According to C standard, an integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant. If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer.

Syntax,

int *piData = NULL; // piData is a null pointer

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What are the post-increment and decrement operator... >>
<< What is the wild pointer?...