Pointers - Programming

Q1:

What will be the output of the program ?
#include<stdio.h>

int main()
{
    int i, a[] = {2, 4, 6, 8, 10};
    change(a, 5);
    for(i=0; i<=4; i++)
        printf("%d, ", a[i]);
    return 0;
}
void change(int *b, int n)
{
    int i;
    for(i=0; i<n; i++)
        *(b+1) = *(b+i)+5;
}

A 7, 9, 11, 13, 15

B 2, 15, 6, 8, 10

C 2 4 6 8 10

D 3, 1, -1, -3, -5

ANS:A - 7, 9, 11, 13, 15

No answer description is available. Let's discuss.