Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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”);
}
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: a

Join The Discussion