1. a)How many variables are local to the swap function below? b)What are they? please explain in detail void swap(int n1, int n2) { int temp = n1; n1 = n2; n2 temp; cout


1.


a)How many variables are local to the swap function below?


b)What are they? please explain in detail



void swap(int n1, int n2) {<br>int temp = n1;<br>n1 = n2;<br>n2<br>temp;<br>cout <«

Extracted text: void swap(int n1, int n2) { int temp = n1; n1 = n2; n2 temp; cout <« "inside="" swap(int,="" int)\n";="" cout=""><« "n1 = " << n1 « " n2 = " « n2 << endl;

"n1=" << n1 « " n2="">
>

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here