Hello friends!!!!!
C if else Statement
C LANGUAGE
10/7/20241 min read
The if-else statement in C is used to perform the operations based on some specific condition. The operators specified in if block are executed if and only if the given statements are true.
These are the following variants of the if statement in C Language.
If statement
If-else statement
If-else-if ladder
Nested if
If Statement :
The if statement is used to check some given condition and perform some operations depending on the correctness of that condition. It is mostly used in the syntax of the if statement is given below.
Syntax:
if(expression) {
//code to be executed
}