What will be the output of the code. Explain your logic with the help of a dry running for the same. #include Void foo(int[]); Int main() { Int ary[4]={1,2,3,4}; foo(ary); Printf("%d",ary[0]); } Void...


What will be the output of the code. Explain your logic with the help of a dry running for the same.


#include


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]);


}





Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here