What will be output of following C code (without linking the source file in which ary1 is defined)?

What will be the output of the following C code (without linking the source file in which ary1 is defined)?

What will be the output of the following C code (without linking the source file in which ary1 is defined)? mcq and its answer is provided on this page.

What will be the output of the following C code (without linking the source file in which ary1 is defined)?

Que. What will be the output of the following C code (without linking the source file in which ary1 is defined)?
a.
b. Subscribe Now: C Newsletter | Important Subjects Newsletters
c. Get Free Certificate of Merit in C Programming Now!
d. #include int main() { extern ary1[]; printf("scope rules\n"); }
e. a) scope rules
f. b) Linking error due to undefined reference
g. c) Compile time error because size of array is not provided
h. d) Compile time error because datatype of array is not provided
Answer: a
Explanation : None.


Comments