Computer Science, asked by anshdeep020404, 5 months ago

Explain if else statement with suitable example?​

Answers

Answered by GuriSingh07
4

Answer:

If the Boolean expression evaluates to true, then the if block will be executed, otherwise, the else block will be executed. C programming language assumes any non-zero and non-null values as true, and if it is either zero or null, then it is assumed as false value.

PLEASE MARK AS BRAINLIEST AND ALSO FOLLOW ME ☺️

Answered by piyushsachdeva707
1

Syntax. If the Boolean expression evaluates to true, then the if block will be executed, otherwise, the else block will be executed. C programming language assumes any non-zero and non-null values as true, and if it is either zero or null, then it is assumed as false value.

Similar questions