Pages

Thursday

Performing Arithmetic Operations using Switch-Case

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.

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.