Answers

Question and Answer:

  Home  C++ Programming

⟩ Write a function that swaps the values of two integers, using int* as the argument type.

void swap(int* a, int*b) {

int t;

t = *a;

*a = *b;

*b = t;

}

 160 views

More Questions for you: