Q:

WHAT IS NULL IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS NULL IN C?

All Answers

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

NULL is a macro which is defined in C header files. The value of NULL macro is 0. It is defined in C header files as below.

#define NULL (void *) 0;

NULL is used for pointers only as it is defined as (void *) 0. It should not be used other than pointers. If NULL is assigned to a pointer, then pointer is pointing to nothing.

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

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT IS VOID POINTER IN C?... >>
<< WHAT IS NULL POINTER IN C?...