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
What is the basic difference between C and C++?
What are put and get pointers?
What is flush programming?
Why do we use templates?
What are the various access specifiers in c++?
what are function pointers?
Mention the ways in which parameterized can be invoked.
Can we specify variable field width in a scanf() format string? If possible how?
What is a constructor in c++ with example?
What is microsoft c++ redistributable?
Is c++ fully object oriented?
What is the best c++ ide?
Is map thread safe c++?
How will you call C functions from C ++ and vice-versa?
Why do we need runtime polymorphism in c++?