I am programming in C and I have a character array filled with letters/numbers. I want to compare the first two values together as one number or combo.
char values[8];
//a value of this might be 245756
switch (values[0 and 1]){
case 24:
do something;
case 45:
do something else;
}
Do I have to concatenate or what if I want to combine the two values and then see if they equal some set of combinations?
Thanks!
Please let me know if I am being unclear.