Question: Here is a small function definition: void f ( int i , int &k ) { i = 1 : k = 2 : }

Here is a small function definition: void f(int i, int &k){ i =1: k =2: }suppose that a main program has two integer variables x and y,which are given the value 0.Test the main program calls f(x,y); 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!