Computer-Networks
October 25, 2024
HCU PHD CS MAY 2012
October 25, 2024
Computer-Networks
October 25, 2024
HCU PHD CS MAY 2012
October 25, 2024

GATE-2024-CS1(Forenoon)

Question 19
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?

A
The program will not terminate

B
The program will terminate with no output
C
The program will terminate with 4321 as output
D
The program will terminate with 1234 as output
Correct Answer: C

Leave a Reply

Your email address will not be published. Required fields are marked *