CJCoding With Joseph
15per day
← Back to Question List
C++ Code Walkthrough #8

Conditional Short-Circuit

mediumIf Statements

📄 Code

Read carefully — what does this print?
1#include <iostream>
2using namespace std;
3 
4int main() {
5 int x = 0;
6 if (x != 0 && 10 / x > 1) {
7 cout << "Yes" << endl;
8 } else {
9 cout << "No" << endl;
10 }
11 return 0;
12}

🎯 Your Answer