Computer Sciences > Gate 2024 Set-1 > Array
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 : a

Similar Questions

Consider the following array of elements. 〈89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100〉. The minimum number of interchanges needed to convert it int...
#31 MCQ
Let A be an array of 31 numbers consisting of a sequence of 0’s followed by a sequence of 1’s. The problem is to find the smallest index i such that A[i] is 1 b...
#591 Fill in the Blanks
Consider the array representation of a binary min-heap containing 1023 elements. The minimum number of comparisons required to find the maximum in the heap is _...
#638 Fill in the Blanks

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......