Ans. The if-else statement in C programming is written as follows:
if (condition) {
// code to be executed if the condition is true
} else {
// code to be executed if the condition is false
}
The condition is an expression that evaluates to either true or false. If the condition is true, the code inside the if block is executed. If the condition is false, the code inside the else block is executed.