What will be the output of the code. Explain your logic with the help of a dry running for the same.
#includeVoid foo(int[]);Int main(){Int ary[4]={1,2,3,4};foo(ary);Printf("%d",ary[0]);}Void foo(int pi[4]);{Int i=10;p=&i;printf("%d",p[0]);}
Void foo(int[]);
Int main()
{
Int ary[4]={1,2,3,4};
foo(ary);
Printf("%d",ary[0]);
}
Void foo(int pi[4]);
Int i=10;
p=&i;
printf("%d",p[0]);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here