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 the basic difference between C and C++?

1227


What are put and get pointers?

1181


What is flush programming?

1056


Why do we use templates?

1110


What are the various access specifiers in c++?

1084


what are function pointers?

1138


Mention the ways in which parameterized can be invoked.

969


Can we specify variable field width in a scanf() format string? If possible how?

1349


What is a constructor in c++ with example?

1180


What is microsoft c++ redistributable?

1145


Is c++ fully object oriented?

1016


What is the best c++ ide?

1233


Is map thread safe c++?

1129


How will you call C functions from C ++ and vice-versa?

1188


Why do we need runtime polymorphism in c++?

1071