Kizspy | Question: 37
(Choose 1 answer)
int a[] = {1,2,3,4};
What is the results will be displayed on the screen after executing the following code:
int i=0, s=0;for (; a[i]; ++i)
s += a[i];
printf("%d", s);
A. 10
B. Compiler error
C. Runtime error
D. Garbage value