Answer to Question #274866 in C++ for Enku

Question #274866

Write a pseudo code for Swap the contents of two variables using a third variable.

1
Expert's answer
2021-12-03T00:38:00-0500
int swap(int &a, int &b) {
  int c;
  c=a;
  a=b;
  b=c;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment