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

In a byte, what is the maximum decimal number that you can accommodate?

1136


What is break in c?

1023


Which is an example of a structural homology?

1321


What are the different data types in C?

1199


what is the significance of static storage class specifier?

2252


Write a program with dynamically allocation of variable.

1119


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1294


What is pre-emptive data structure and explain it with example?

3718


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1333


Is it possible to have a function as a parameter in another function?

1073


Explain the use of #pragma exit?

1172


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1230


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1084


What is array in c with example?

1245


What does s c mean in text?

1094