Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain what are compound statements?

1063


what are # pragma staments?

2046


What is conio h in c?

1049


What does 3 mean in texting?

1104


Between macros and functions,which is better to use and why?

2230


Do string constants represent numerical values?

1407


Can variables be declared anywhere in c?

1095


How do we make a global variable accessible across files? Explain the extern keyword?

1884


How does free() know explain how much memory to release?

1057


Why do we use header files in c?

1079


What is extern variable in c with example?

997


How can I open files mentioned on the command line, and parse option flags?

1074


Is main is user defined function?

1155


How can I remove the trailing spaces from a string?

1077


Is void a keyword in c?

986