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 are the iterator and generic algorithms.
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What are abstract data types in c++?
Define a constructor - what it is and how it might be called (2 methods)?
What are the various storage classes in C++?
Differentiate between realloc() and free().
What character terminates all character array strings a) b) . c) END
How would you use the functions randomize() and random()?
How to declare a function pointer?
Do inline functions improve performance?
What is fixed in c++?
What is vectorial capacity?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is difference between rand () and srand ()?