int main ()
{
int firstvalue 5 secondvalue 15;
int * p1 * p2;
p1 &firstvalue;
p2 &secondvalue;
cout << "firstvalue is " << firstvalue << endl;
cout << "secondvalue is " << secondvalue << endl;
cout << "++*p1 is " << ++*p1 << endl;
cout << "(*p1)++ is " << (*p1)++ << endl;
return 0;
}
output:
firstvalue is 5
secondvalue is 15
++*p1 is 6
(*p1)++ is 6