Can anyone clarify me about this: Apart from reserving the required memory, what else do the allocation operators do?
(a) Automatically deallocate the memory when it goes out of scope
(b) Automatically deallocate the memory when it is is no longer accessible
(c) Calls the constructor(s) for the specified type
(d) Calls the destructors(s) for the specified type
It seems to me after reading some info in wiki and other sites it is either A or C but I am not 100% sure - anyone?
Thanks.

VulpesRank #55 · 29.2K reputationPosted Jan 23, 2012, 8:00 AM EST
This is because you could describe 'delete' as a deallocation operator rather than an allocation operator as it's reclaiming the memory that was used by an object.
VulpesRank #55 · 29.2K reputationPosted Jan 23, 2012, 7:54 AM EST
These do (c) and (d) respectively.
They don't do (a) and (b).
siabanie banie68 reputationPosted Jan 23, 2012, 7:56 AM EST
siabanie banie68 reputationPosted Jan 23, 2012, 8:05 AM EST