I need to check on multiple conditions but I don't know if I can use and operation for this particular case
here is how I want it to be: for example if x = 0xff (I want all the cases to be considered, if x= 0xAA, i want only 1 case to be considered among all(SAY case B)
switch(x)
{
case A && case B && case C && Case D
break;
case B
break;
case C:
break;
default:
break;
}
any leads is appreciated
Aucun commentaire:
Enregistrer un commentaire