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
What is buffer and example?
What programming language should I learn first?
Can we use struct in c++?
Explain about vectors in c ++?
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What is ios flag in c++?
What does obj stand for?
If dog is a friend of boy, is boy a friend of dog?
Differences between private, protected and public and give examples.
What is the best way to take screenshots of a window with c++ in windows?
What does std :: flush do?
What is the purpose of extern storage specifier?
What are the c++ access specifiers?
Should the member functions which are made public in the base class be hidden?