C-Programming-data-structure || 2019 NAT || 2-mark

Last Updated :
Discuss
Comments

Consider the following C program:

C
#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 _____. GATE CSE || 2019 NAT || 2-mark


10

Share your thoughts in the comments
Article Tags :