Home » C Programming » Variables » Question
  1. What will be the output of the following C code (after linking to source file having definition of arrayA)?
    #include <stdio.h>
    int main()
    {
    extern arrayA[];
    printf("%d\n", arrayA[0]);
    }
    1. Compile time error due to multiple definitio
    2. Compile time error because size of array is not provided
    3. Compile time error because datatype of array is not provided
    4. Value of arrayA[0];
    5. None of these
Correct Option: C

Compile time error because datatype of array is not provided



Your comments will be displayed only after manual approval.