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; __ __ __ __
![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)
%3D
%3D
a
b
sum
sum = static_cast<int>(a + b + c);
b += c * a;
с -- а;
a *= 2 * b - c;](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4951d8c4-ec25-4d3b-95ea-ca8b5f2f1237%2F6bc5b51b-e3f2-4676-82c0-fe9737b4e596%2F66snsqq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 5 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)