Vidyalelo
C Programming · Q223

Pointer

Programming · C Programming · question 223

Q223

What will be the output of the following C code? #include int main() foo(ary); void foo(int **ary) int i = 10, k = 20, j = 30; int *ary[2]; ary[0] = &i; ary[1] = &j; printf("%d ", ary[0][1]);

A.
10
B.
20
C.
Compile time error
D.
Undefined behaviour
Answer

Answer: Option D

Solution

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