2. Evaluate the following arithmetic expressions.
a. 5 / 2 + 4 – 2 * 7 % 3
b. 5.0 / 2 + 4 - 2 * 7 % 3
c. 17 – 5 * 4 / 10 * 5 / 2 Assignment 2- Direction: What will be the values of i, j, and k after the evaluation of each operation. Assume that i= 1
and j=3
a. k= j-- + ++i
i=
j=
k=
b. k= ++i + j--
i=
j=
k=
c. k= j-- + ++j
i=
j=
k=
d. k= --j + j++
i=
j=
k=
e. k= i++ - j++
i=
j=
k=
Answers & Comments
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀