What will be the output of the following C code? [code] #include <stdio.h> int main() { int ary[4] = {1, 2, 3, 4};

Daniel William

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int ary[4] = {1, 2, 3, 4};
        printf("%d\n", *ary);
    }
A. 1
B. Compile time error
C. Some garbage value
D. Undefined variable
 

Tìm kiếm

Back
Top