Saturday, March 17, 2012

OPERATING CONDITION C++ LANGUAGE : SWITCH CASE STATEMENT

Form of a switch - case statement which is designed specifically to tackle the decision-making involving a number or a lot of alternatives. this Switch - case statement has the same functionality as if - else compound statement, but to examine the data of type character or integer.


Each branch will be executed if the conditions value of the constants are met and the default will be executed if all the branches above are not met. Break statement indicates ready to get out of the switchif this statement does not exist, then the program will be forwarded to the other branches.

0 comments:

Post a Comment