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
How do you declare A pointer to a function which receives nothing and returns nothing
Mention the storage classes in c++.
Differentiate between realloc() and free().
Comment on local and global scope of a variable.
What is the main purpose of overloading operators?
How to implement is-a and has-a class relationships?
What is vector processing?
What is data binding in c++?
Show the declaration for a static member variable.
How do you establish an is-a relationship?
What is an incomplete type in c++?
Explain class invariant.
What is the arrow operator in c++?
What is the difference between a declaration and a definition?
What is the difference between cin.read() and cin.getline()?