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 return value must conversion operators have in their declaration?

1031


Explain dangling pointer.

1076


Why is c++ still best?

933


what are the iterator and generic algorithms.

1886


What are vectors used for in c++?

1016


Is vector a class in c++?

980


Why do we use templates?

994


What is the meaning of string in c++?

1013


How do you save a c++ program?

985


What are stacks?

1011


Explain data encapsulation?

1066


Why do we use structure in c++?

1005


Is c++ high level programming language?

1077


Difference between delete and free.

1026


What is &x in c++?

943