-
Comment on the output of the following C code.
#include <stdio.h>
int main()
{
int k;
for (k = 0; k < 10; k++)
int m = k;
printf("%d", m);
}
-
- Redeclaration of m in same scope throws error
- Syntax error in declaration of m
- m is out of scope when printf is called
- No errors, program will show the output 15
- None of these
Correct Option: B
Syntax error in declaration of m