My, that is hard code to read!
But when I had sorted out the formatting by putting spaces round all your operators, I realised that the whole things boils down to
j = j++;
That never works.
If you search this forum you will find that lots of people get that sort of confusion, and we even have an
FAQ about it.