Consider the following C program:
The output of the above C program is ________.
c
Programming in CPointers, Multi-Dimensional Arrays, StructuresNAT2 marksMedium
1#include <stdio.h>
2int main ( )
3{
4 int a[ ] = {2, 4, 6, 8, 10};
5 int i, sum = 0, *b = a + 4;
6 for (i = 0; i < 5; i++)
7 sum = sum + (*b - i) - *(b - i);
8 printf ("%d\n", sum);
9 return 0;
10}
11A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.