Nested Loops in C – C allows loops to be nested, that is, one loop may be inside another. The program given below illustrates the…
The For Loop in C Language
The for Loop in C – for statement makes it more convenient to count iterations of a loop and works well where the number of iterations…
Do while Loop in C Language
There is another loop control structure which is very similar to the while statement, called as the Do While Loop in C Language. The only difference…
The While Loop in C Language
The While Loop in C – When in a program a single statement or a certain group of statements are to be executed repeatedly depending…
The Switch Statement in C Language
The objective of Switch Statement in C Language is to check several possible constant values for an expression, something similar to the linking of several if and else…
Else If Statement in C Language
To show a multi-way decision based on several conditions, we use the else if statement. This works by cascading of several comparisons. As soon as…
Nested If Else Statement in C Language
In Nested If Else Statement in C, an entire if…else construct is written within either the body of the if statement or the body of…
If else statement in C Language with Example
If else statement in C language is used when a different sequence of instructions is to be executed depending on the logical value (True /…
If Statement in C Language
If Statement in C is used to execute an instruction or sequence/block of instructions only if a condition is fulfilled. In if statements, In if…
Control Flow in C Programming
Control Flow in C – A program consists of a number of statements to be executed by the computer. Not many of the programs execute all…
Precedence of Operators in C Language
Precedence of Operators in C All the operators in C language can be used together in an expression, C uses a certain hierarchy to solve…
Typecasting in c
Typecasting in C -It is possible to force an expression to be a specific type by using an operator called a cast. These force conversions…
Type Conversions in C Language & Type Conversion Rules
Type Conversions in C Language – when an operator has operands of different types, they are converted to a common type according to type conversion rules….
Shorthand Operator in C
Shorthand Operator in C – C has a special operator called shorthand that simplifies coding a certain type of assignment statements. Example for Shorthand Operator in C…
Unary Operator Sizeof in C Language
The unary operator sizeof in C generates the size of a variable or datatype, measured in the number of char size storage units required for the…
Comma Operator in C Program
Comma Operator in C – A comma operator is used to separate a pair of expressions. A pair of expressions separated by a comma is evaluated left to…
Conditional Operator in C
Conditional Operator in C – C provides an called as the conditional operator (?:) which is closely related to the if/else structure. The conditional operator is C’s…
Logical operators in C Language
Logical operators in C, as with other computer languages, are used to evaluate expressions which may be true or false. Expressions which involve logical operations are…
Increment and Decrement Operators in C
Increment and decrement operators in C – C language contains two unary operators referred to as increment (++) and decrement (–) operators. The two unary arithmetic operators in…
Arithmetic Operators in C Language
The basic arithmetic operators in C are the same as in most other computer languages and correspond to our usual mathematical/algebraic symbolism. The following arithmetic operators are…