Given the declarations
const float PI = 3.14159;const int MAX_I = 1000;float x, y;int a, b, i;
indicate which C++ statements below are valid and find the value of each valid statement. Also, indicate which are invalid and why. Assume that a is 3, b is 4, and y is –1.0.
a. i = a % b;
b. i = (MAX_I – 990) / a;
c. i = a % y;
d. i = (990 – MAX_I) / a;
e. i = PI * a;
f. x = PI * y
;g. x = PI / y;
h. i = (MAX_I – 990) % a;
i. x = a % (a / b);
j. i = a % 0;
k. i = b / 0;
l. i = a % (MAX_I – 990);
m. x = a / y;
n. i = a % (990 – MAX_I);
o. x = a / b;
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.