-
What will be the output of the following C code?
#include <stdio.h>
int n;
int main()
{
extern int n;
if (p == 0)
printf("Scope rules follow here\n");
}
-
- Scope rules followed
- Nothing will be printed as value of n is not zero because i is an automatic variable
- Compile time error due to multiple declaration
- Compile time error due to not defining type in statement extern n
- None of these
Correct Option: A
Scope rules followed