Pointer and Reference

Examples

C++

int * p = new int;
*p = 7;
int * q = p;
*p = 8;
cout << *q;