C if…else Statement Find Larger Value Between Two Variables

C if…else statement

The if...else statement executes some code if the test expression is true (nonzero) and some other code if the test expression is false (0). Test expression is logical condition which is formed by following relational operators.

Relational operators in C

A relational operator is a operator that tests or defines some kind of relation between two entities. These include numerical equality (e.g., 7 == 7) and inequalities (e.g., 7 ≥ 2). In C programming, It returns 1 value as True & 0 value as false. Note that, any non-zero value(either positive or negative) in test expression considers as True and only zero value considers as false.if-elseSyntax of if…else

Download Code: Find-larger-value-between-two-variable.c(4 downloads)



following are the program code related to simple if else if statements.

C Programs on Looping Statements – Syntax, Working & Programs