Bloomberg Interview Question

A() = new B(); --- what does this statement do in C ?

Interview Answer

Anonymous

May 15, 2010

this is C++ not C A() is a function call return so called L-value, an object of type B, that is being assigned with value of a new object B.