#include <iostream>
using namespace std;
int Foo(int * iOne, int & iTwo);
int Foo2(int iOne, int iTwo);
int Foo3(int * iOne, int iTwo);
void main()
{
int a(0);
int b(1);
int c(5);
Foo(&a, b);
c = Foo(&b, a);
a = Foo3(&c, b);
c++;
cout << a << endl;
cout << b << endl;
cout << c;
system("pause");
}
int Foo(int * iOne, int & iTwo)
{
*iOne += 2;
iTwo -= 3;
iTwo++;
--iTwo;
*iOne = Foo2(*iOne, iTwo);
return *iOne;
}
int Foo2(int iOne, int iTwo)
{
iOne += 10;
iTwo = 6;
iOne = iTwo;
iTwo--;
return iOne+iTwo;
}
int Foo3(int * iOne, int iTwo)
{
iTwo = 0;
*iOne++;
return iTwo;
}