Could anyone please explain why the output of this code is 4 when x = 0 ( i thought if x is 0, which applies the the case 0: and y suppose to be 3 and i'm wrong in this case.
#include <stdio.h> int main() { int x = 0; int y; switch (x) { case 0: y = 3; case 1: y = 4; break; default: y = 5; break; } printf("%d", y); getchar(); return 0; }