1.

How does compiler convert “::operator new” implicitly?(a) ::operator new( sizeof( type ) )(b) ::operator new( sizeof( ) )(c) new operator :: type sizeof( type )(d) new sizeof( type ) operatorThe question was asked in an international level competition.The question is from New Operator topic in division Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The CORRECT answer is (a) ::operator new( sizeof( type ) )

Best EXPLANATION: The compiler implicitly converts the syntax so that the instruction can be understood by the processor and PROPER MACHINE CODE can be generated. The conversion is done implicitly and no explicit syntax is required.



Discussion

No Comment Found

Related InterviewSolutions