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 / roshan p.r.
Hi,
you cannot free a memory allocated with new using "free"
and in the same way callac with "delete"
because they are incompatable
Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is c strings syntax?
Why is swift so fast?
What size is allocated to the union variable?
What parameter does the constructor to an ofstream object take?
What is the difference between delegation and implemented-in-terms-of?
What is an operator function? Describe the function of an operator function?
How important is c++?
What is a namespace in c++?
What are punctuators in c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Why do we use pointers in c++?
what are the iterator and generic algorithms.
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What does extern mean in a function declaration in c++?
What should main() return in c and c++?