Consider the following C program: #include <stdio.h> int main() { int a[] =…
GATE · 2019 · CS · Computer Science & IT
Consider the following C program:
#include <stdio.h>
int main()
{
int a[] = {2, 4, 6, 8, 10};
int i, sum = 0, *b = a + 4;
for (i = 0; i < 5; i++)
sum = sum + (*b – i) – *(b – i);
printf (“%d\n”, sum);
return 0;
}
The output of the above C program is __________.
Attempted by 70 students.
Sign up free to check your answer
Sign up freeLoading lesson…