C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 3)
3.
In which header file is the NULL macro defined?
stdio.h
stddef.h
stdio.h and stddef.h
math.h
Answer: Option
Explanation:
The macro "NULL" is defined in locale.h, stddef.h, stdio.h, stdlib.h, string.h, time.h, and wchar.h.
Discussion:
48 comments Page 4 of 5.

Jeevitha said:   1 decade ago
Can you tell about stddef.h?

Deepak said:   1 decade ago
It is a library function.

Shail said:   1 decade ago
What is the function of null marco?

Sasi said:   1 decade ago
It is also available in stdlib.h library

Harsh said:   1 decade ago
Please tell me What kind of standard definition?

Chethan said:   1 decade ago
Can any one explain about stddef.h????

Priyanka said:   2 decades ago
Tell me more about stddef.h.

Sundar said:   1 decade ago
@Vanitha

Include any one of the header files stdio.h or stddef.h, it is enough to use NULL.

Anyhow, including the both header files stdio.h and stddef.h WILL NOT create any problem.

Have a nice day!

Jksahu said:   1 decade ago
stddef.h is stands for standard definition called it is uses for some exceptional condition.

Himanshu said:   1 decade ago
NULL macro:

#define NULL 0


Post your comments here:

Your comments will be displayed after verification.