C Programming

C is a general-purpose, middle-level, compiler-based, and procedure or function-oriented structured programming language. It was developed by Dennis Ritchie at Bell Laboratories in 1972. The main purpose of developing C was to write operating systems.

Related Pages

Absolute value in C

Absolute value describes the distance of a number on the number line from 0 without considering the direction. The absolute value of a number is always positive (distance can never be negative). Here we will develop a program to find the absolute value in C. First, we will develop a program without using any pre-defined

Absolute value in C Read More »

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 »

If Else Statement in C

The if-else statement in C is a selection statement. When dealing with selection statements, there are generally three versions: one-way, two-way, and multi-way. One way decision statements do a particular thing or they do not. Two-way decision statements can do one thing or do another. Multi-way decision statements can do one of many different things

If Else Statement in C Read More »