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

Operator Precedence Arithmetic

C++ code walkthrough · Question 22
mediumOperators

Code

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

Your answer