Computer Applications

What will be the output of the following if x=5?

i. 5 * ++x
ii. 5 * x++

Java Operators

ICSE 2005

98 Likes

Answer

i.  5 * ++x
⇒ 5 * 6
⇒ 30

ii.  5 * x++
⇒ 5 * 5
⇒ 25

Answered By

55 Likes


Related Questions