6.3.1.if statement |
|
To conditionally execute statements, you can use the if or the if...else statement. |
The general form of the if statement is |
if(expr) {
s1 ;
s2 ;
....
}
|
|
expr is a Boolean expression that returns true (nonzero) or false (zero). |
#include <stdio.h>
main(){
int i = 3,j = 5;
if(i < j){
printf("i < j \n");
}
}
|
|
i < j |