em_begin
Newbie level 2
hii
i have some query about switch case in C
case 'C':
case 'c':
switch (*comm++)
{
case 'S':
case 's':
command = STATUS;
break;
}
break;
Tell me why it is necessry to use this switch case format like C,c,S,s?
is ther any concept behind this implimentation.
so just give me the some idea behind this things.
actually this code is related to serial command.
and i also want to do this things for my serial comm.
thnx
i have some query about switch case in C
case 'C':
case 'c':
switch (*comm++)
{
case 'S':
case 's':
command = STATUS;
break;
}
break;
Tell me why it is necessry to use this switch case format like C,c,S,s?
is ther any concept behind this implimentation.
so just give me the some idea behind this things.
actually this code is related to serial command.
and i also want to do this things for my serial comm.
thnx