I am new to C and need help. My code is the following.
#include #include void main() { int suite=2; switch(suit
case 1||2:
Becomes true. so it becomes case 1: but the passed value is 2. so default case executed. After that your printf("I thought somebody"); executed.
true
case 1:
printf("I thought somebody");