Question: Here is a small function definition: void f ( int i , int &k ) { i = 1 : k = 2 : }
Here is a small function definition: void fint i int &k i : k : suppose that a main program has two integer variables x and ywhich are given the value Test the main program calls fxy; What are the values of x and y after the function f finishes? c
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
