What will be the output of the following C code? [code] #include <stdio.h> void main() { char a[10][5] = {"hi", "hello",

Lan Anh

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        char a[10][5] = {"hi", "hello", "fellows"};
        printf("%p\n", a);
        printf("%p", a[0]);
    }
A. same address is printed
B. different address is printed
C. hello
D. hi hello fello
 

Tìm kiếm

Back
Top