you can also increment pointers,since pointer p1 is an int it is 4 bytes(on most systems) long so by incrementing pi you will move it to the next int,so p1 now points to the next four bytes in memory
1 2 3 4 5
cout << *p1 << endl; // prints 1;
p1++;
cout << *p1 << endl; // should now print 2