Will the following C code compile without any error?
#include <stdio.h>
int main()
{
int k;
{
int k;
for (k = 0; k < 10; k++);
}
}
#include <stdio.h>
int main()
{
int k;
{
int k;
for (k = 0; k < 10; k++);
}
}
A. Yes
B. No
C. Depends on the compiler
D. Depends on the C standard implemented by compilers
Answer: Option A
Join The Discussion