Basic strcat query from k&r book

This is a discussion on Basic strcat query from k&r book within the C Programming forums, part of the General Programming Boards category; I am trying to understand postfix & prefix increment and decrement operators from K&R book. They have given a string ...

Obviously I am not getting desired output but I am unable to pinpoint the problem.
In the above example concatenation starts to happen when i=8 but to mess around (++i) I prefix the offset so in my case i becomes 9 before assignment. Same is the case with j. So as per my understanding & at best program should have skipped a few characters but in my case the concatenation is not happening.
i.e. the output is just:

Well, it's quite a simple concept to grasp. i++ is “yield the value of i, then add one to it and store it in i” and ++i is “add one to i, then yield that value and store it in i”. In your first snippet, after the second while statement, s[i] contains the '\0' character. When the second while statement is entered, s[i] is overwritten with the value of t[0]. This simply doesn't happen in your second snippet — the value of t[0] is stored in s[i + 1] instead, which is the character *after* the terminating '\0' in s.