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

Short-Circuit Evaluation

C# code walkthrough · Question 38
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