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?

Answers were Sorted based on User's Feedback



What is a dangling pointer?..

Answer / sumithra.a

A dangling pointer arises when you use the address of an
object after its lifetime is over. This may occur in
situations like returning addresses of the automatic
variables from a function or using the address of the
memory block after it is freed

Is This Answer Correct ?    16 Yes 0 No

What is a dangling pointer?..

Answer / 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

What is a dangling pointer?..

Answer / vemana palleboina

Blocked memory.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ General Interview Questions

What is oop in c++?

0 Answers  


Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }

2 Answers   CDAC, Wipro,


Is java the same as c++?

0 Answers  


Explain virtual functions in C++.

3 Answers  


In a function declaration, what does extern mean?

0 Answers  


What is the difference between static link library and dynamic link library?

7 Answers   Tech Mahindra,


What is c++ array?

0 Answers  


write the prime no program in c++?

16 Answers  


Explain how functions are classified in C++ ?

0 Answers  


Explain what are accessor methods?

0 Answers  


Can static member variables be private?

0 Answers  


Explain abstraction.

0 Answers  


Categories