c programming examples with output

Switch Case Statement in C

The switch case statement in C programming is a multi-way decision that tests whether an expression matches one of a number of constant integer values, and branches accordingly. Two keywords are used in the program:- switch and case. Syntax of switch case in C The value of the expression is evaluated first and the value

Switch Case Statement in C Read More »

If Else Program in C Example

Previously we learned about if-else statements now, we will write some simple if-else programs in C. These all are basic programs, you can write them easily. Few more programs are also there, see all top C Program Examples. Prerequisites to solve these problems:- If else statement in C Also see:- If statement Quiz in C,

If Else Program in C Example Read More »

Tricky C Programs

There are many tricky C programs that are regularly asked. You should know those tricky C programming questions and their solutions. Tricky C programs: Arithmetic operations In arithmetic operations, we will write the program for basic arithmetic operations like addition, subtraction, multiplication, and division without using generally used operators. These all operations are done on

Tricky C Programs Read More »

C Program Using Functions Example

Here we will develop the C program using functions. We will write user-defined functions to solve the problems. After learning the introduction to function in C and User-defined function in C, we are able to build some user-defined functions to perform some mathematical operations like finding the area of a rectangle, circle, cube of the

C Program Using Functions Example Read More »