What Is Switch Case 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.
Switch case is a type of control statement used to execute different blocks of code based on different conditions. It is a substitute for a long series of if–else statements. It‘s similar to an if–else statement, which checks for a condition and, if true, executes the associated block of code. A switch statement will check for multiple conditions, each associated with a different block of code.