I have turn on 16 LEDs one by one using two 74HC595 shift register. I have some doubt regarding my code and need some help

What makes you say that, @robtillaart ?