Nguyễn Vân Anh
New member
What will be the output of the following C code?
A. Compile time error
B. Undefined behaviour
C. 0
D. Some garbage value
Code:
#include <stdio.h>
int main()
{
int i = 0, j = 1;
int *a[] = {&i, &j};
printf("%d", (*a)[0]);
return 0;
}
B. Undefined behaviour
C. 0
D. Some garbage value