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

Submitted by: Administrator
void swap(int* a, int*b) {
int t;
t = *a;
*a = *b;
*b = t;
}
Submitted by: Administrator

Read Online C++ Programming Job Interview Questions And Answers