What will happen if I allocate memory using "new" and free
it using "free" or allocate sing "calloc" and free it using
"delete"?
Answer Posted / ekta
free is not compatible with new.
free wont recognise the memory allocated by new and should
gie some error i guess.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Will a catch statement catch a derived exception if it is looking for the base class?
What is c++ programming language?
What is the use of default constructor?
What is abstraction in c++?
What is double in c++?
Who created c++?
Is java the same as c++?
How much is c++ certification?
How does c++ structure differ from c++ class?
What does the ios::ate argument do?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
List the advantages of inheritance.
Differentiate between the manipulator and setf( ) function?
Explain how we implement exception handling in c++?
What is a virtual destructor? Explain the use of it?