Computer Applications
What is the result stored in x, after evaluating the following expression?
int x = 5;
x = x++ * 2 + 3 * --x;
Java Operators
ICSE 2010
42 Likes
Answer
x = x++ * 2 + 3 * --x
⇒ x = 5 * 2 + 3 * 5
⇒ x = 10 + 15
⇒ x = 25
Answered By
23 Likes