Computer Applications
Evaluate the following expression if the value of x=2, y=3 and z=1. v=x + --z + y++ + y
Java Operators
ICSE 2019
43 Likes
Answer
v = x + --z + y++ + y
⇒ v = 2 + 0 + 3 + 4
⇒ v = 9
Answered By
29 Likes
Related Questions
Write Java expression for:
if (a>b&&b>c) then largest number is:
- b
- c
- a
- wrong expression
Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
- +
- %
- -
- *
A student needs to calculate the average of three numbers
x
,y
, andz
. Which is the correct Java expression for this calculation?