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

What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int a[3] = {1, 2, 3};
        int *p = a;
        printf("%p\t%p", p, a);
    }
A. Same address is printed
B. Different address is printed
C. Compile time error
D. Nothing
 

Tìm kiếm

Back
Top