Bloomberg interview question

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

Interview Answer

Anonymous

15 May 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.