switchthis is another form of the multi way


Switch

This is another form of the multi way decision. It is well structured, but can only be used in certain cases where;

  • Only one variable is tested, all branches must depend on the value of that variable.

The variable must be an integral type. (int, long, short or char).

  • Each possible value of the variable can control a single branch. A final, catch all, default branch may optionally be used to trap all unspecified cases.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: switchthis is another form of the multi way
Reference No:- TGS0305398

Expected delivery within 24 Hours