How does subtracting the character '0' from a char change it into an int?

Viewed 6162

This method works in C, C++ and Java. I would like to know the science behind it.

4 Answers
Related