Ask Question
22 August, 14:04

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

+4
Answers (1)
  1. 22 August, 14:22
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers