Page 1 of 1

What will be the output of the following C code (after linking to source file having definition of ary1)?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#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