CJCoding With Joseph
← Back to Question List
C++ Code Walkthrough #22

Operator Precedence Arithmetic

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