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 c++

1804


What are the advantages of using a pointer?

609


Mention the ways in which parameterized can be invoked.

540


Who created c++?

584


What is the insertion operator and what does it do?

565






What methods can be overridden in java?

674


why is c++ called oops? Explain

583


Is it possible to provide special behavior for one instance of a template but not for other instances?

635


How do you remove an element from a set in c++?

582


What are the different types of comments allowed in c++?

581


What are the restrictions apply to constructors and destructors?

645


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

588


What is the difference between struct and class?

747


Differentiate between a pointer and a reference with respect to c++.

697


What are the types of pointer?

554