Question 20
Answer saved
Marked out of 1.00
What will be the output of the following C code?
1.#include <stdio.h>
2.void foo(int[]);
3.int main()
4.{
5.int ary[4] = {1, 2, 3, 4};
6.foo(ary);
7.printf("%d", ary[0]);
8.}
9.void foo(int p[4])
10.{
11.int i = 10;
12.p = &i;
13.printf("%d", p[0]);
14.}