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