I was trying to get used to Pointer arithmetics, with increment operators both on the address and value pointed to by the pointer.
I used std::cout for checking my understanding, I found what I couldn't easily digest, let's have a look( This is a code inside of the function main ):
int R = 0;
std::cout << 0 << 1 << 2 << 3 << endl;
std::cout << R++ << R++ << R++ << R++ << endl;
R = 0; // R value reset to Zero;
std::cout << ++R << ++R << ++R << ++R << endl;
The result will be:
0123
3210
4444
I tried to figure out behavior of cout with postfix ++, but when I took its behavior with the prefix ++ into the same consideration, I totally collapsed. And simply realized: it's a stackoverflow issue. Thank you guys in advance.