Skip to content
CSCosmos
C // COSMOS
memory workbench
Overview
Learn
Lab
Problems
Toggle theme
Arena
if/else, Relational & Logical Operators
← 05
07 →
DRILL 06
Medium
Short-Circuit Logic
What is printed?
drill.c
C
Copy
int x = 0; if (x != 0 && 10 / x > 1) { printf("A"); } else { printf("B"); }
Choose an answer
A
A
B
B
C
Nothing
D
Division by zero
Show hint