Computer Science, asked by psingh49839, 4 months ago


i) Write down the syntax of the if else statemenent

Answers

Answered by Anonymous
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 Anonymous
14

\huge\bf\green{Answer}

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