Given the following declarations, what result is stored in each of the listed assignment statements? a. iResult
Question:
Given the following declarations, what result is stored in each of the listed assignment statements?
a. iResult = num1 / num4;
b. fResult = num1 / num4;
c. iResult = num3 / num4;
d. fResult = num3 / num4;
e. fResult = val1 / num4;
f. fResult = val1 / val2;
g. iResult = num1 / num2;
h. fResult = (double) num1 / num2;
i. fResult = num1 / (double) num2;
j. fResult = (double) (num1 / num2);
k. iResult = (int) (val1 / num4);
l. fResult = (int) (val1 / num4);
m. fResult = (int) ((double) num1 / num2);
n. iResult = num3 % num4;
o. iResult = num 2 % num3;
p. iResult = num3 % num2;
q. iResult = num2 % num4;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: