A.7 15 Points int x 1, y -1; void swapplus1(int n1, int n2) { int temp n1+1 n1 = n2-1; n2 temp x= x+ n1; void swapplus2(int&

A.7 15 Points int x 1, y -1; void swapplus1(int n1, int n2) { int temp n1+1 n1 = n2-1; n2 temp x= x+ n1; void swapplus2(int& n1, int& n2) { int temp n11 n1 n2-1 n2 = temp; void swapplus3(const int& n1, const int& n2) { int n1val, n2val, temp n1+1; n1val = n2-1; n2val temp; yn2 void swapplus4(int p1, int* p2) int temp p1+1 “p1 = “p2 + 1; “p2 = temp; x= “p1 + y } void swapplus5(int &p1, int &p2) { int temp p1 +1 p1 p2-1 p2 = temp void print/const int& x, const int& y) { cout



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *