-
Will the following C code compile without any error?
#include <stdio.h>
int main()
{
int n;
{
int n;
for (n = 0; n < 12; n++);
}
}
-
- No
- Yes
- Depends on the C standard implemented by compilers
- All of above
- None of these
Correct Option: B
There can be blocks inside the block. But within a block, variables have only block scope.