Here is a program that performs arithmetic operations using switch case in C programming language. The use of switch case provides more control to the user by asking the user which operation he/she wants to perform.
Learn C programming from scratch with our comprehensive tutorial series. Master the fundamentals, explore advanced concepts, and unleash your coding potential. Build a strong programming foundation with our easy-to-follow C programming tutorial. From data types to functions, arrays to pointers, we've got you covered.
Pages
▼
Thursday
Why use break statement inside switch case in C
The typical case with switch-case conditional statements is that when a case gets executed the switch-case condition doesn't stop its execution at that point rather it executes all the subsequent cases following the case which is executed first. Lets take a look at an example to understand this concept.