/* This program demonstrates the task of swapping two values with the help of a pointer. Task: Use this function to sway the two arrays entries. */ #include using namespace std; void swap (int& x, int& y) { int temp ; temp =x ; x =y ; y = temp ; return ; } int main(){ int a =5 ; int b =10; cout << "The values before the swap:"<