Question: What is the output of the following program? #include using namespace std; void swap(int &x,int &y); int main() { int i, j; i =

What is the output of the following program? #include using namespace std; void swap(int &x,int &y); int

What is the output of the following program? #include using namespace std; void swap(int &x,int &y); int main() { int i, j; i = 10; j = 20; swap (i, j); cout

Step by Step Solution

3.34 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Initialize i with the value 10 and j with the value 20 2 Call ... View full answer

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 Computer Network Questions!