Q. What is the output of this program?
Code:
#include <stdio.h>
int main()
{
int i;
for (i = 0;i < 5; i++)
int a = i;
printf("%d", a);
}
β
Correct Answer: (D)
Syntax error in declaration of a