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 5 of 5.

Pradeep said:   1 decade ago
I want exact information & use of this function.

Gourav Sharma said:   1 decade ago
Please give breif intro of null macro & stddef, Can we use stddef in any case?

Zoaib said:   1 decade ago
Hi please tell about the stdio.h and stdio.lib ?

Swetha said:   1 decade ago
Hi, please give me explanation clearly.

Bijan said:   1 decade ago
NULL Macro is simply what is defined as 0 in a macro provided by the library

Null macro is defined in stdio.h and stddef.h.It is used to represent a null pointer in your code.

its value is zero.

Null pointer is same as an uninitialized pointer..It does not point anywhere.

Riya said:   1 decade ago
Thnks bijan.

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

Om prakash said:   1 decade ago
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.


Post your comments here:

Your comments will be displayed after verification.