C Exercises

Jun 15, 2020

Switch-case in C defination and syntax

Definition: The control structure that allows us to make decision from the number of choices is called as switch

Below is shown syntax of Switch case.

Syntax:



  What is break statement?


Switch statement tests the value of a variable and compares it with multiple cases. Ones the case match is found a block of statements associated with that particular case is executed.

No comments:

Post a Comment

If you have any doubts, please discuss here...👇