123456789101112131415161718192021
int *pt1, *pt2, *pt3, num; pt1 = new int(2); pt2 = new int[5]; num = *pt1; pt3 = # cout << *pt1 << " " << *pt3; cout << endl; pt3 = pt2; *pt3 = 4; pt2++; for(int i = 0; i < 4; i++) { *pt2 = (*pt1 * i) - *pt3; cout << *pt2 << " "; pt3++; pt2++; } cout << endl; cout << *(pt3 - 2);