Consider the following C program: Assume that the input to the program from…

PYQ GATE 2024

Consider the following C program:

Assume that the input to the program from the command line is 1234 followed by a newline character. Which one of the following statements is CORRECT?

  1. A.

    The program will not terminate

  2. B.

    The program will terminate with no output

  3. C.

    The program will terminate with 4321 as output

  4. D.

    The program will terminate with 1234 as output

Attempted by 618 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…