Question: Explination please A.6-15 Points void swapplus1(int n1, int n2) int temp n1+1 n1 n2+3; n2 temp void swapplus2(int& n1, int& n2) int temp n1+1 n1

Explination please
A.6-15 Points void swapplus1(int n1, int n2) int temp n1+1 n1 n2+3; n2 temp void swapplus2(int& n1, int& n2) int temp n1+1 n1 n2+3 n2 temp: void swapplus3(const int& n1, const int& n2) int n1val, n2val, temp n1+1 ntval n2+3 n2val temp; void swapplus4(int p1, int p2) int temp p1+1 p1 p2+3; p2-temp void swapplus5(int &p1, int' &p2) int temp p1+3 p2-temp: void print(const int&x, const int& y) int main0 int arrK 2, 4,6,8, 10,12, 14 intpt arr; y ptr+4); swapplus1x, y; printx, y) swapplus2x, y; printx, y) swapplus3x, y; printx, y) swapplus4(&x, &y); print(x,y); px)- swapplus5(px, py); return 0; print(x,y); This program outputs 5 lines. What are they
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
