Re: [algogeeks] Delete vs Free

2010-08-15 Thread rajat ahuja
yup callin destructor ,, deallocate memory of resources allocated by object like heap memory of pointer ,, On Sun, Aug 15, 2010 at 3:58 PM, amit wrote: > I have read that Delete is more safer than free as Delete calls the > destructor of the object but i dont get whats the reason for ca

[algogeeks] Delete vs Free

2010-08-15 Thread amit
I have read that Delete is more safer than free as Delete calls the destructor of the object but i dont get whats the reason for calling the destructor if anyways it want to deallocate the memory. Does calling the destructor serves any other purpose?? -- You received this message because you are