In K&R I found a piece of code which showed how atoi() works. It said like s[i] - '0' will give a numeric value of the character.
Can someone please explain it to me. I tried to search around but they only explain it with integers and not with characters. Say you are given s[i] = 'C'.