CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Chained Compound Assignment

C++ code walkthrough · Question 27
easyOperators

Code

Read carefully. What does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 int x = 10;
5 x += 5;
6 x *= 2;
7 x -= 3;
8 cout << x << endl;
9 return 0;
10}

Your answer