Vidyalelo
C Programming · Q82

Pointer

Programming · C Programming · question 82

Q82

What will be the output of the following C code? #include int main() int i = 0, j = 1; int *a[] = &i, &j; printf("%d", (*a)[1]); return 0;

A.
Compile time error
B.
Undefined behaviour
C.
1
D.
Some garbage value
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board