Problem 4. [20 pts] Given the following function and main program int operation (int a[1, ints b, int
c) int r; r=ab; b=t(a+1)2; c=b2; return (r); 1 int main()) int i[2], j=2,k=3; cin >>i[0]; i[1] (i)++; cout
operation (i,j,k)+jk; return 0; 4.a [4 pts] is the argument a passed by value or reference? Answer:
4.b [4 pts] is the argument b passed by value or reference? Answer: 4.c [4 pts] Is the argument c
passed by value or reference? Answer: 4.d [ 4 pts] What standard input is needed to get the
output to be 0 ?

Problem 4 20 pts Given the following function and main pr.pdf

  • 1.
    Problem 4. [20pts] Given the following function and main program int operation (int a[1, ints b, int c) int r; r=ab; b=t(a+1)2; c=b2; return (r); 1 int main()) int i[2], j=2,k=3; cin >>i[0]; i[1] (i)++; cout operation (i,j,k)+jk; return 0; 4.a [4 pts] is the argument a passed by value or reference? Answer: 4.b [4 pts] is the argument b passed by value or reference? Answer: 4.c [4 pts] Is the argument c passed by value or reference? Answer: 4.d [ 4 pts] What standard input is needed to get the output to be 0 ?