C Programming - Pointers - Discussion
Discussion Forum : Pointers - General Questions (Q.No. 3)
3.
In which header file is the NULL macro defined?
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 2 of 5.
Harsh said:
2 decades ago
Please tell me What kind of standard definition?
Chethan said:
2 decades ago
Can any one explain about stddef.h????
Vanitha said:
2 decades ago
If it necessary to include both the header files?
Sundar said:
2 decades 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!
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:
2 decades ago
stddef.h is stands for standard definition called it is uses for some exceptional condition.
Himanshu said:
2 decades ago
NULL macro:
#define NULL 0
#define NULL 0
Pradeep said:
2 decades ago
I want exact information & use of this function.
Gourav Sharma said:
2 decades ago
Please give breif intro of null macro & stddef, Can we use stddef in any case?
Zoaib said:
2 decades ago
Hi please tell about the stdio.h and stdio.lib ?
Swetha said:
2 decades ago
Hi, please give me explanation clearly.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers