View Single Post
Mentor
14Jul2009,00:57  
xpi0t0s's Avatar
You have undefined behaviour because sub[5] doesn't exist.
Limit i to the range 0..4 and you should get consistent behaviour.