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.

Vinod said:   1 decade ago
What is the purpose of using null pointer?

Karthika said:   1 decade ago
I need the purpose of using wchar.h in this program.

Varsha said:   1 decade ago
NULL Pointer is a pointer which is pointing to nothing. It points the base address of segment.

In case, if you don't have address to be assigned to pointer then you can simply use NULL Pointer which is initialized with NULL value is considered as NULL pointer.

Omkar Patil said:   9 years ago
It also defined in alloc.h and mem.h.

Shanthi said:   9 years ago
Please tell about B].stddef.h.

Rashmi said:   9 years ago
Please explain locale.h header file. What does it contain?

Akshay Kalra said:   7 years ago
NULL is defined as:

#define NULL (void *)0

Dipak said:   4 years ago
STDDEF.C is a header file.

Am I right?
(2)


Post your comments here:

Your comments will be displayed after verification.