Wednesday, 10 June 2015

Q17,Paper 3,d13. The compiler converts all operands upto the type of the largest operand is called



(A) Type Promotion
(B) Type Evaluation
(C) Type Conversion
(D) Type Declaration

Answer A.
Promotions are commonly used with types smaller than the   standard  type of the target data type on which operation can be done.  C and C++ perform such promotion for objects of boolean, character, wide character, enumeration, and short integer types,which are promoted to int  and for objects of type float, which are promoted to double. Unlike some other type conversions, Promotions are done to maintain the precision.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.