Why when we want to convert an ASCII value of a digit into an integer, we need to do:
value - '0'
?
And the other way around, to convert Integer to ASCII, we need to do:
value + '0'
Why is that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…