You have to pass a reference to an
int*
:
int someVal = 123;
int *pSomeVal = &someVal;
MyFunc(pSomeVal);
Because a reference must be an lvalue, you must create a variable rather than just passing the address of a variable which is not an lvalue.
Because your function is incrementing the pointer, using an array makes more sense (avoid out-of-bounds access):
int someVals[] = { 1, 2, 3 };
int *pSomeVal = someVals;
MyFunc(pSomeVal);
cout << *pSomeVal;