str 5bi 5d 270 27

Solutions on MaxInterview for str 5bi 5d 270 27 by the best coders in the world

showing results for - "str 5bi 5d 270 27"
María
07 Jan 2017
1The part str[i] - '0' takes the ASCII character of the corresponding digit 
2which are sequentially "0123456789" and subtracts the code for '0' from the 
3current character. This leaves a number in the range 0..9 as to which digit is 
4in that place in the string.
5