C will regard the expression as TRUE if the value of the expression is ( ).
查看答案
Determine whether the following syntax of the if statement is correct.-- CODE ----if (expression);statement;-- CODE ----
A. 对
B. 错
The statement following the “if (expression)” is only executed if the “expression” is 0.-- CODE ----if (expression)statement;-- CODE ----
A. 对
B. 错
A compound statement can be used anywhere in a C program in place of a single statement.
A. 对
B. 错
Is the syntax of the following program correct?-CODE---int num = 5;int result = 0;if (num > 100) result = 1;else if (num == 3); result = 2;else if (num < 20) result = 3;else; result = 4;-CODE---
A. 对
B. 错