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
Does c++ have arraylist?
Where must the declaration of a friend function appear?
Why do we use classes in c++?
What is the use of main function in c++?
Why would you use pointers in c++?
What is the difference between an array and a list?
Are iterators pointers?
Why should we use null or zero in a program?
What is array in c++ example?
what you know about c++?
What is long in c++?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
How does com provide language transparency?
What is an orthogonal base class in c++?
Can a function take variable length arguments, if yes, how?