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