Also, since you enclose ptrint++ in parentheses it is evaluated before you output the pointed to value (after you include the dereference operator that is.) So the first element in the array won't be passed to cout. Also, your array contains 6 elements. with the test expression in the for loop as j < 5, you will only output elements 1-5 (since when j = 4 it will output element 5 and that will be the last iteration.) Any time you use a for to output each element of an array of size n this way you either use j < n or j <= n-1.
Now, one thing I'm not sure of is how you would make the statement work since *ptrint++ might actually increment the value returned by dereferencing the pointer. To be safe you might want to do something like this (unless someone else can suggest a method that works on one line:
a pointer points to a space in memory by pointing to the adress sometimes if the space is empty you get the address.
its not quite right but the secret to understanding pointers is to know how they ACTUALY work...and to completley bend your head around the subject so your clear practice using them in arguments for functions
Ah yup, you are right freddy. I forgot the postfix increment returns the original value. So you would be able to write that for sure as *(ptrint++) since that will increment the pointer but return the original address, then dereference it.