+ 3
Why is 0 = 48 in this code? [solved]
Here is my code: https://code.sololearn.com/cQr93C76D80K/#cpp I don't know why, but when using kas.at() string function, when it's 0 code shows 48, 1 is 49 and so on. Could somebody help me with that?
4 Réponses
+ 5
I think "at" means "Ascii Table"🤔
+ 2
Well, quick search on the forum and I found that ASCII character of 0 is represented by 48, 1 by 49 and so on ;D
0
ascii value of 0 is 48
0
'0' is a character data type not an integer, represent a value of 48 in integer.