What Is Switch Statement In C?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A switch statement is a control flow statement that allows you to control the flow of your program based on different conditions. In C, it is used to execute one block of code out of many alternatives. It is a type of selection control mechanism in which each of the possible cases is checked for a match with the expression value. If a match is found, the associated block of code is executed.