Ask Question
22 January, 08:17

3. The ifstatement:

if (13<12)

printf ("never/n");

else

printf ("always/n");

A. displays never

B. displays always

C. will not compile since 13 is not less than 12

D. causes a run-time error since 13 is not less than 12

E. displays nothing since 13 is not less than 12

+3
Answers (1)
  1. 22 January, 08:27
    0
    Hi!

    The correct answer is B.

    Explanation:

    The if statement will compare 13<12. This will return false.

    In addition, you have an else clause, so:

    If comparison is true then run the code in the if statement.

    If comparison is false then run the code in the else statement

    Step by step.

    First, the code will compare 13 false;

    Second: if (false) - > run the else statement.

    Third: printf ("always/n");
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “3. The ifstatement: if (13 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers