What is the difference between new/delete and malloc/free?
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of seekg in c++?
Explain Text Manipulation Routines?
What is the function to call to turn an ascii string into a long?
Explain how the virtual base class is different from the conventional base classes of the opps.
Define anonymous class.
Is main a class in c++?
What is a multimap c++?
Will the following program execute?
Describe private, protected and public?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is the difference between public, private, and protected access?
Explain stack & heap objects?
write a function signature with various number of parameters.
Show the declaration for a static member variable.