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

Please explain the reference variable in c++?

1049


Explain container class.

1228


What are the four main data types?

1076


Specify different types of decision control statements?

840


What is the extraction operator and what does it do?

1076


How would you use qsort() function to sort an array of structures?

1112


How can we access protected and private members of a class?

1100


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1044


Which coding certification is best?

1008


Why is c++ still popular?

1029


What is a sequence in c++?

994


What do you understand by a pure virtual member function?

994


Does dev c++ support c++ 11?

1002


Can malloc be used in c++?

1064


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3897