Tell me the contexts in which the Unary numeric promotion is applied?

Unary numeric promotion is applied in the following contexts:

1.operand of the unary arithmetic operators + and -

2.operand of the unary integer bitwise complement operator ~

3.during array creation; for example, new int[20], where the dimension expression (in this case 20) must evaluate to an int value

4.indexing array elements; for example, table['a'], where the index expression (in this case 'a') must evaluate to an int value (see Section 4.1, p. 103)

5.individual operands of the shift operators <<, >> and >>>

Questions by sujatham   answers by sujatham

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions