Hi,
https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html
The explanation of the first link is clear, and about the ascii table : the decimal number of each character is different so if you’re getting different result it’s because of the decimal number and the condition you have set in your code.