1.

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");
}

A. Scope rules followed
B. Nothing will be printed as value of n is not zero because i is an automatic variable
C. Compile time error due to multiple declaration
D. Compile time error due to not defining type in statement extern n
E. None of these
Answer» B. Nothing will be printed as value of n is not zero because i is an automatic variable


Discussion

No Comment Found

Related MCQs