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 is stream and its types in c++?

647


What is the size of integer variable?

688


What is a constructor and how is it called?

692


What is type of 'this' pointer?

690


Differentiate between an array and a list?

813






What is the C-style character string?

699


What character terminates all character array strings a) b) . c) END

787


Difference between pass by value and pass by reference?

697


what is Member Functions in Classes?

706


What is function prototyping? What are its advantages?

682


When do we run a shell in the unix system? How will you tell which shell you are running?

638


What are static and dynamic type checking?

704


What is pointer with example?

642


How can I learn dev c++ programming?

671


What is #include ctype h in c++?

763