#include using namespace std; int main() { int num[5]; int* ptr ; ptr = num; *ptr = 10; ptr++; *ptr = 20; ptr = &num[2]; *ptr = 30; ptr = num + 3; *ptr = 40; ptr = num; *(ptr + 4) = 50; for (int i1 = 0; i1 < 5; i1++) cout << num[i1] << ", "; return 0; }