#include <iostream>
using std::cout;
using std::endl;
int main() {
long* pnumber;
long number1 = 55L;
long number2 = 99L;
pnumber = &number1;
*pnumber += 11;
cout << endl
<< "number1 = " << number1
<< " &number1 = " << pnumber
<< endl;
pnumber = &number2;
number1 = *pnumber * 10;
cout << "number1 = " << number1
<< " pnumber = " << pnumber
<< " *pnumber = " << *pnumber
<< endl;
return 0;
}
|