Please help baby C programmer...
Ron Hudson
rhudson@cnonline.net
Sun Jan 27 16:28:00 GMT 2002
I am having trouble with the switch / case statement.
In my program I have a nested case statement.
switch (a){
case 1:
switch (b){
case 1:
statement1
break;
case 2
statement 2
break;
}/* close switch b */
case 2:
switch (b){
case 1:
statement 1
break;
case 2:
statement 2
break;
} /* close switch b*/
}/* close switch a */
---------
Is is OK to nest switch statements?
Thanks.
More information about the Gcc
mailing list