Ask Question

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

+5
Answers (1)
  1. 15 July, 05:12
    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?
Find an answer to your question 👍 “3. The ifstatement: if (13 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers