y = ch+x; Here ch will be converted to int type.
For example: ch =' a because the character A corresponds to the ASCII code value of 97.
So y=ch+x=97+x, so it is correct.