12345678910



Question 1: What will be the output of the program?

#include<stdio.h>
int main()
{
static int a[20];
int i = 0;
a[i] = i ;
printf("%d, %d, %d ", a[0], a[1], i);
return 0;
}

1. 1, 0, 1
2. 1, 1, 1
3. 0, 0, 0
4. 0, 1, 0