Expressions
Give the value and data type of each of the following expressions or explain why the expression results in an error. Assume the following declarations:
int x = 3, w, v;
double y = 2.5;
short z = 's';
boolean m = true;
a. 2 + 7 − x
b. 2 + y − z
c. (2 * z + x ) / 100
d. w = y * 2
e. v = (int)5 * y
f. 17 % (int)(10 / y) + 6.2
g. (y = = 2.5) || (m && false)
h. (x > 2.0) && m
i. (z<'T') || (m = = false)
j. z *= 2 * 2
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.