Computer Science, asked by fghx, 1 month ago

Evaluate the following java expression if x= 5 and y = 2: [2] y=x-- + ++y/4 – x--% 4;​

Answers

Answered by Anonymous
2

Answer:

In the above expression, ++z means that the value will first increment by 1, then used. Now, evaluate the statement by putting the values of x, y, and z. ++z+y-y+z+x++ 11 + 5 - 5 + 10 + 3 = 24.

Similar questions