#include <iostream>
using namespace std;

int main() {
    int s[5] = {1, 2 , 3, 4, 5};
    
    int *p = s;
 
    int first = *(p++);
    int sec = *++p;
    int third = ++*p;
    int fourth = *p++;
    
    cout << "*p++ is " <<  first << endl
         << "*++p is " << sec << endl
         << "++*p is " << third << endl
         << "*p++ is " << fourth << endl;
    return 0;
}