What is the difference between new/delete and malloc/free?
Answer / neelam saini
Malloc/free do not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of bit fields in structure declaration?
Describe run-time type identification?
Define private, protected and public access control.
Explain binary search.
Does c++ vector allocate memory?
When you overload member functions, in what ways must they differ?
How can you find the nodes with repetetive data in a linked list?
What is the size of pointer ? Also size of pointer in 64 bit pointer
Incase of a function declaration, what is extern means?
Is there anything you can do in C++ that you cannot do in C?
Can a constructor return a value?
structure contains int, char, float how it behaves for big endian and little endian?