#include <stdio.h>
int main()
 {
int a[ ] = {1, 2, 3, 4};
int sum = 0;
for (int i = 0; i < 4; i++)
sum+=a[i];
}
printf ("%d", sum) ;
return 0;
}
What is the output of this code snippet 
a. 1
b. 6
c. 10
d. 15

Posted on by