Given the following declarations, what is the result of each of the assignments?
int w = 5, y = 9, z = 2;
a. z = w * y;
b. z += y;
c. y /= z;
d. y %= z;
e. y += y++;
f. y += --y;
a. 45 b. 54 c. 0 d. 0 e. 0 y. -1
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment