Question: 1. Calculate the values of x and y under different parameter passing methods. int x=5, y-10; void f1 (int a, int b) a a +b;
1. Calculate the values of x and y under different parameter passing methods. int x=5, y-10; void f1 (int a, int b) a a +b; b-y b; x=x+1; y-y 1; main0 fl(x, yl printf("X3%d y=%d ", x, y); (a) Call-by-value: (b) Call-by-value-result (c) Call-by-reference: x=
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
