What will be the output of the following C code? [code] #include <stdio.h> void main() { int lookup[100] = {0, 1, 2,

Đạt Michio

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int lookup[100] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
        printf("%d", lookup[3]);
    }
A. 2
B. 4
C. Compile time error
D. 3
 

Tìm kiếm

Back
Top