#include <iostream>
usingnamespace std;
void doSomething(int *);
void main()
{
int *p;
int X =10;
p = &X;
cout<<p<<endl;
cout<<*p<<endl;
cout<<&X<<endl;
doSomething(pX); //isnt working in here but works inside the function.
};
void doSomething(int *pX)
{
(*pX)++;
};