Computer Applications
What will be the output of the following if x=5?
i. 5 * ++x
ii. 5 * x++
Java Operators
ICSE 2005
103 Likes
Answer
i. 5 * ++x
⇒ 5 * 6
⇒ 30
ii. 5 * x++
⇒ 5 * 5
⇒ 25
Answered By
58 Likes
What will be the output of the following if x=5?
i. 5 * ++x
ii. 5 * x++
103 Likes
i. 5 * ++x
⇒ 5 * 6
⇒ 30
ii. 5 * x++
⇒ 5 * 5
⇒ 25
Answered By
58 Likes