#include <iostream>
using namespace std;

int main() {
    int s[5] = {1, 2 , 3, 4, 5};

    int *p = s;

    cout << "*p++ is " << *p++ << endl
         << "*++p is " << *++p << endl
         << "++*p is " << ++*p << endl
         << "*p++ is " << *p++ << endl;
    return 0;
}