Showing posts with label calculator. Show all posts
Showing posts with label calculator. Show all posts

January 29, 2013

Switch Statement in C++ (OOPs)



switch statement banner ON OFF in C++ (OOPs)


This statement is also used for decision making. Here key word is switch followed by control variable and followed by it’s block.
In the block of switch statement multiple cases are used and each ends with break statement this is also called as early exit loop.
Out of all the cases only that case will run whose value matches with the control variable.