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 difference between class and function?
Who made c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
How come you find out if a linked-list is a cycle or not?
What is a character in c++?
How does a C++ structure differ from a C++ class?
Why do we use iterators?
Why do we use the using declaration?
What is a namespace in c++?
What are move semantics?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Which is not a valid keyword a) public b) protected c) guarded
Which programming language should I learn first?
What is the full form of stl in c++?
Why do we use classes in programming?