switch case in c
switch (a) {
case 100:
// Code
break;
case 200:
// Code
break;
default:
// Code
break;
}
compare two strings
if (strcmp(s1,s2)==0){
//true
}
switch (a) {
case 100:
// Code
break;
case 200:
// Code
break;
default:
// Code
break;
}
if (strcmp(s1,s2)==0){
//true
}