Please help me understand this code


here when (ch==1) the update lines i am not able to understand please help

Okay I will look into this and tell you the explanation