I assume you are talking about the loop on line 16-17 because the loop on line 22 is of course an infinite loop because the loop condition is always 1.
Ahh cout << pc1++; Will print out characters until it finds '\0'
So everything from pc1 to the end of the buffer will print each iteration of the loop.
See the output from this https://ideone.com/lFW1nV