Computer Applications
If int y =10 then find int z = (++y * (y++ + 5));
Java
Java Operators
ICSE 2015
87 Likes
Answer
z = 176
Working
z = (++y * (y++ + 5))
⇒ z = (11 * (11 + 5))
⇒ z = (11 * 16)
⇒ z = 176
Answered By
52 Likes
Related Questions
What will be the output of the following code?
int k=5,j=9; k+= k++ - ++j + k; System.out.println("k="+k); System.out.println("j="+j);
What is the difference between = and ==
Give the output of the following expression:
a+= a++ + ++a + --a + a--; when a = 7;What is the value of y after the execution?
y+= ++y + y-- + --y; when int y=8