Post Test
- If expression.
The expression can be of which type? - What error does the if condition gives if not terminated with end statement?
- If statement inside if statement is called Nested if statements.
- It’s a good habit to give two spaces between if statement and condition.
- What is the output of the code?
#include
intmain()
{
if(11<2){
printf("Eleven is less than two");}
end
printf("11 is greater");
}
True
Any number
Any string
All of the mentioned
Syntax error
Unexpected end
Expecting keyword end
All of the mentioned
True
False
True
False
11 is greater
Eleven is less than two
Eleven is less than two 11 is greater
None of the mentioned
