Shall we use 'free' to free memory assigned by new, What are
the further consequences??
Answer Posted / uma sankar pradhan
No,we shouldnot use 'free' to free memory assigned by new.
It causes memory leak and sometimes hanging of the system
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Does improper inheritance have a potential to wreck a project?
Define copy constructor.
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Is overriding possible in c++?
What is extern 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 are the benefits of operator overloading?
What are the extraction and insertion operators in c++? Explain with examples.
How to declare an array of pointers to integer?
What are all predefined data types in c++?
What is object in c++ example?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Is c++ the most powerful language?
Is c++ faster than c?
Can constructor be static in c++?