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.
Hadeer said:
1 decade ago
As pointer can point to anywhere in memory& maybe enter to code area &anywhere that I don't want so we use null. Null like intialize value to pointer.
Amit said:
1 decade ago
Sir.
In that case a, b, c, d are vallid option becz in that header NULL.
Macro also included. Then hows it c?
In that case a, b, c, d are vallid option becz in that header NULL.
Macro also included. Then hows it c?
Rathika.b said:
1 decade ago
What is the purpose of using null pointer?
Then why stdio.h & stddef.h assigned these null pointers.
Then why stdio.h & stddef.h assigned these null pointers.
Jksahu said:
1 decade ago
stddef.h is stands for standard definition called it is uses for some exceptional condition.
Deependra rathore said:
1 decade ago
stddef.h is stands for standard definition called it is uses for some exceptional condition
Balan said:
2 decades ago
Stddef stands for standard definiton.
Which is called for certain exceptional declaration.
Which is called for certain exceptional declaration.
Gourav Sharma said:
1 decade ago
Please give breif intro of null macro & stddef, Can we use stddef in any case?
Meera said:
1 decade ago
NULL Macro is simply what is defined as 0 in a macro provided by the library.
Jhansi said:
1 decade ago
What Mr. Ganesh said is true. using NULL pointer is very Dangerous
Prutha said:
1 decade ago
What is the use of null macro? why is an empty pointer required?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers