How to use nested switch construct
Use of nested switch construct:
Declaration :
switch (selection)
{ case 1 : statement sequence
switch (nes_swi)
{ case 1 : statement sequence
break;
case 2 : statement sequence
break;
}
case 2 : statement sequence
switch (nes_swi_2)
{ case 1 : statement sequence
break;
case 2 : statement sequence
break;
}
No comments:
Post a Comment