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


Please Help Members By Posting Answers For Below Questions

Which of the following is evaluated first: a) && b) || c) !

1791


Which function cannot be overloaded c++?

571


What are exceptions c++?

581


Define anonymous class.

615


What is static in c++?

586






Define stacks. Provide an example where they are useful.

567


Which bit wise operator is suitable for checking whether a particular bit is on or off?

597


What is this pointer in c++?

716


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

707


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

623


What is recursion?

645


Write a c program for binary addition of two 8 bit numbers.

3655


What is the basic of c++?

590


How do you clear a set in c++?

594


Is ca high or low level language?

575