i) Write down the syntax of the if else statemenent
Answers
Answered by
4
Answer:
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.
Answered by
14
The If-Else statement
The general form of if-else is as follows: if (test-expression) { True block of statements } Else { False block of statements } Statements; n this type of a construct, if the value of test-expression is true, then the true block of statements will be executed.
Similar questions
Computer Science,
2 months ago
Social Sciences,
2 months ago
Computer Science,
5 months ago
CBSE BOARD XII,
5 months ago
Math,
10 months ago
Math,
10 months ago
Physics,
10 months ago