4
Reply

Confused about operator

siabanie banie

siabanie banie

Jan 23 2012 12:47 PM
1.5k
Hi all,

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.


Answers (4)