Vidyalelo
Java Programming · Q32

Operators

Programming · Java Programming · question 32

Q32

int ++a = 100 ; System.out.println( ++a ) ; What will be the output of the above fraction of code ?

A.
100
B.
Displays error as ++a is not enclosed in double quotes in println statement
C.
Compiler displays error as ++a is not a valid identifier
Answer
D.
None of these

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board