Question: Consider the program below. What will be the output? #include using namespace std; void swap 1 ( int a , int b ) { int
Consider the program below. What will be the output?
#include
using namespace std;
void swapint a int b
int t a;
a b;
b t;
void swapint& a int& b
int t a;
a b;
b t;
int main
int n m ;
swapn m;
cout n n m m endl;
swapn m;
cout n n m m endl;
return ;
Group of answer choices
n m
n m
n m
n m
n m
n m
n m
n m
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
