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...

What is a dangling pointer?

Answer Posted / achal ubbott

Here is an example of dangling pointer.

char* p = new char;// allocate a byte from heap section.
delete p ; // deallocation.

*p = 44 ; // using a dangling pointer.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between class and function?

1097


Who made c++?

1091


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

2009


How come you find out if a linked-list is a cycle or not?

1037


What is a character in c++?

1050


How does a C++ structure differ from a C++ class?

1124


Why do we use iterators?

1084


Why do we use the using declaration?

1177


What is a namespace in c++?

2036


What are move semantics?

1168


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

997


Which is not a valid keyword a) public b) protected c) guarded

1264


Which programming language should I learn first?

1104


What is the full form of stl in c++?

1196


Why do we use classes in programming?

1042