Hello guys,
How can I make a switch case using an array of chars.
Ex:
char input[50];
// my code here
switch ( input ) {
case "abc":
// do something
break;
case "xyz":
// do otherthings
break;
}
Is that possible in C?
Thank you!