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
What is anonymous object in c++?
What is the difference between C and CPP?
Why is null pointer used?
Explain the difference between static and dynamic binding of functions?
What is abstract keyword in c++?
What is difference between c++ and c ++ 14?
What is virtual base class uses?
Differentiate between the message and method in c++?
What do you mean by static variables?
Differentiate between an inspector and a mutator ?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
Mention the storage classes in c++.
Write about the local class and mention its use?
When should we use container classes instead of arrays?
Can I learn c++ without c?