int main() { int n; n=38; int *p; p=&n; *p=52; int *q; q=new int; *q=25; q=p; *q=87; q=new int; *q = 50; // What's the difference? p=q vs. *p=*q // What if *p=q? // What if q=*p? q=new int[5]; q[2]=55; q[0]=27; int list[5]={2,4,6,8}; cout << *q << endl; cout << *list << endl; // Can't reassign list, but could reassign (or reallocate memory for) q. list[4]=43; }