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
Can we get the value of ios format flags?
What is the standard template library (stl)?
What is name hiding in c++?
What is the best c++ compiler for windows 10?
What is the first name of c++?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
What is abstraction in c++?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Does c++ have foreach?
How can you quickly find the number of elements stored in a static array?
What are member functions used in c++?
What is flush () in c++?
what is data encapsulation in C++?
Why do we need runtime polymorphism in c++?
What does ctime() do?