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
In a function declaration what does extern means?
Is there any function that can skip certain number of characters present in the input stream?
Difference between delete and free.
What is the function to call to turn an ascii string into a long?
When is the destructor called?
Can we define function inside main in c++?
What is auto type c++?
How a pointer differs from a reference?
What is an adaptor class in c++?
What is ostream in c++?
How can you link a c program with a c function?
What is runtime errors c++?
Write about c++ storage classes?
Which software is used for c++ programming?
What is command line arguments in C++? What are its uses? Where we have to use this?