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

Short-Circuit Evaluation

mediumOperators

📄 Code

Read carefully — what does this print?
1int x = 0;
2if (x != 0 && 10 / x > 1)
3{
4 Console.WriteLine("yes");
5}
6else
7{
8 Console.WriteLine("no");
9}

🎯 Your Answer