30 Suppose a, b, and sum are int variables and c is a double variable. What value is assigned to each variable after each statement executes? Suppose a = 6, b = 3, and c = 2.2. (14) a b c sum sum = static_cast(a + b + c); __ __ __ __ b += c * a; __ __ __ __ c -= a; __ __ __ __ a *= 2 * b - c; __ __ __ __
30 Suppose a, b, and sum are int variables and c is a double variable.
What value is assigned to each variable after each statement executes?
Suppose a = 6, b = 3, and c = 2.2. (14)
a b c sum
sum = static_cast<int>(a + b + c); __ __ __ __
b += c * a; __ __ __ __
c -= a; __ __ __ __
a *= 2 * b - c; __ __ __ __
Trending now
This is a popular solution!
Step by step
Solved in 5 steps