Question: So far we have been using pass - by - value arguments, in which a value is passed to a function as an argument. Consider

So far we have been using pass-by-value arguments, in which a value is passed to a function as an argument. Consider the following code:
int x =7;
int y =20;
flip(x, y); // this is a function call
cout << x <<""<< y << endl; // should print 207

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 Programming Questions!