engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Programming in C Array
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;
}
Enter numerical value using the virtual keypad. Round off where necessary.