

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following program of ‘C’main ( ){static int a [ ] = { 1, 2, 3, 4, 5, 6, 7, 8 } ;int i;for(i = 2; I < 6; ++i)a [a [i] ] = a [i];for (I = 0; I < 8 ; ++i)printf (“%d”, a[i]);}The output of the program is : |
A. | 1 2 3 4 5 6 7 8 |
B. | 1 2 3 3 5 5 7 8 |
C. | 1 2 2 3 3 4 4 8 |
D. | None of the above |
Answer» C. 1 2 2 3 3 4 4 8 | |