C Programming

C Program to Find Total of Even Integers

C printf, scanf, fprintf and sprintf functions

printf and scanf are two standard C programming language functions for input and output. Both are functions in the studio library which means #include <studio. h> is required at the top of your file.

The standard library provides functions related … Read More

C Program to Find Total of Even Integers

C Arrays with Examples

C Arrays are convenient way of grouping lot of variables under single variable name. Arrays they can be one dimensional, two dimensional or more dimensional! An array is defined using square brackets []. For example: an array of three integers … Read More

C Program to Find Total of Even Integers

C for loop with Example

The most interesting and most difficult of all loops is the C for loop. The name for loop comes from the typical description of classic for loop: For all values of variable from value1 to value2 in steps … Read More

C Program to Find Total of Even Integers

C While Loop with Example

The simplest of three loops in C Language is the C while loop. In common language while has fairly obvious meaning: the while-loop has a condition:

while (condition)
{
statements;
}

If the statements are executed while the condition … Read More

C Program to Find Total of Even Integers

C – do while loop in C programming with Syntax Example

The while and for loops test the termination condition at the top. By contrast, the third loop in C, the do while loop, tests at the bottom after making each pass through the loop body; the body is always … Read More

C Program to Find Total of Even Integers

C Switch Statement with Examples

The C switch statement is multi-way decision that tests whether an expression matches one of number of constant integer values, and branches accordingly.

The switch is multi way conditional statement generalizing the if-else statement. Let us first look at … Read More

C Program to Find Total of Even Integers

C – If else Statement with Examples

The if else statement is used to express decisions and the syntax as per below,

if (expression)
statement 1
else
statement 2

where the else part is optional. The expression is evaluated; if it is true {that is, if>expression has Read More