What will be the output of the following C code (without linking the source file in which ary1 is defined)?
#include <stdio.h>
int main()
{
extern ary1[];
printf("scope rules\n");
}
#include <stdio.h>
int main()
{
extern ary1[];
printf("scope rules\n");
}A. scope rules
B. Linking error due to undefined reference
C. Compile time error because size of array is not provided
D. Compile time error because datatype of array is not provided
Answer: Option A

Join The Discussion