Switching b/w Switch Statements:


#include stdio.h

void main() {
int a=1;
switch(a){

a=2;
case 1: switch(a){

case 2: printf("Hello your right\n");
break;
case 1: printf("Sorry your wrong\n");
break;
default: printf("You killed it\n");
break;
}
default: printf("None of the above\n");
}
}

Posted on by