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 :

1
1 2 3 4 5 6 7 8
2
1 2 3 3 5 5 7 8
3
1 2 2 3 3 4 4 8
4
None of the above
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation