Consider the following program of ‘C’

#include
int 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];
int sum = 0;
for (i = 0; i < 8 ; ++i) 
sum += a[i];
printf("%d",sum);
return 0;
}

What is the output of the program?

Enter numerical value using the virtual keypad. Round off where necessary.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation