Q74
What will be the output of the following C code? #include void foo( int[] ); int main() int ary[4] = 1, 2, 3, 4; foo(ary); printf("%d ", ary[0]); void foo(int p[4]) int i = 10; p = &i; printf("%d ", p[0]);
A.
10 10
B.
Compile time error
C.
10 1
AnswerD.
Undefined behaviour
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board