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 (after linking to source file having definition of ary1)?
#include < stdio.h >
int main()
{
extern ary1[];
printf(“%d\n”, ary1[0]);
}

What will be the output of the following C code (after linking to source file having definition of ary1)?
#include < stdio.h >
int main()
{
extern ary1[];
printf(“%d\n”, ary1[0]);
}
a) Value of ary1[0];
b) Compile time error due to multiple definition
c) Compile time error because size of array is not provided
d) Compile time error because datatype of array is not provided

Answer: d

Join The Discussion