siabanie banie

siabanie banie

  • NA
  • 68
  • 74.2k

Confused about operator

Jan 23 2012 12:47 PM
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)