Difference between null pointer and dangling pointer?
Answer Posted / ravi
Both are very different.
NULL macro is
#define NULL 0
it means the macro NULL will be replaced by 0 while
preprocessing
But the NULL pointer means it points to nowhere i.e. contains 0.
It contains 0 means it may be dangerous to use such pointer
without assigning proper address to it otherwise NULL
pointer may try to access reset address may cause the
program to crash.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of ftell?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
How do we open a binary file in Read/Write mode in C?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Define the scope of static variables.
How many bytes is a struct in c?
Explain what are compound statements?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What does s c mean in text?
Explain zero based addressing.
Is null always defined as 0(zero)?
What is conio h in c?
What is a structure and why it is used?
What is structure in c explain with example?
What is array of pointers to string?