//OrinTill Qimid CS1A Chapter 4, P. 294, 10
//
/**************************************************************
 *Array modifying 
 * 
 * ____________________________________________________________
 * This program will modify a array so that it will take pointers instead.
 * ____________________________________________________________
 * INPUT
 * a : 2
 * b : 3
 * OUTPUT
 * dosomething : modified array.
 **************************************************************/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
 
int doSomething(int *x, int *y)
    {
        int temp = *x;
        *x = *y * 10;
        *y = temp * 10;
        return *x+*y;
    }
int main() 
{  
    int a = 2;
    int b = 3;
    cout<<doSomething(&a, &b);
    return 0 ;
   }