Shall we use 'free' to free memory assigned by new, What are
the further consequences??

Answer Posted / aruna kumar samal

yes you can use free to free memory assignrd by new but it
wo not call the destructor.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

866


What is an adjust field format flag?

856


What is ifstream c++?

786


Explain deep copy and a shallow copy?

786


What are static member functions?

793


What do you mean by inheritance in c++? Explain its types.

809


Why c++ is so important?

799


What is isdigit c++?

820


What is the best c++ compiler?

764


What is unary operator? List out the different operators involved in the unary operator.

766


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

792


What is rvalue?

882


What is the full form of stl in c++?

881


What is the use of string in c++?

733


What is endl c++?

824