Evaluate the following java expression if x= 5 and y = 2: [2] y=x-- + ++y/4 – x--% 4;
Answers
Answered by
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
Social Sciences,
25 days ago
Social Sciences,
25 days ago
Math,
25 days ago
Math,
1 month ago
Biology,
1 month ago
Math,
9 months ago