## Hierarchy of Operators Revisited in C

Since we have now added the logical operators to the list of operators we know, it is time to review

## ! the logical operator not in C

In this article we will learn about the NOT operator, written as !. This operator reverses the result of the

## C Program to calculate the salary

Problem Statement: Write a program to calculate the salary as per the following table: Solution: /* C program to calculate salary

## Else if clause in C

Let’s have an example to understand else if clause : /* else if ladder demo */ main( ) { int

## Logical Operator in C

C allows usage of three logical operators, namely, &&, || and !. These are to be read as ‘AND’ ‘OR’

## Forms of if in C

The if statement can take any of the following forms: if ( condition ) do this ; if ( condition

## Nested if else in C

It is perfectly all right if we write an entire if-else construct within either the body of the if statement

## if else statement in c

The if statement by itself will execute a single statement, or a group of statements, when the expression following if

## Multiple Statements within if in C

It may so happen that in a program we want more than one statement to be executed if the expression

## If Statement in C

Like most languages, C uses the keyword if to implement the decision control instruction. The general form of if statement

## Introduction to Decision Control Structure in C

Decision !!! we all need to alter our actions in the face of changing circumstances. If the weather is fine,