SpiceQA
Questions
Tags
Users
Badges
How does subtracting the character '0' from a char change it into an int?
user_2817885
0
Created Dec 21, 2013
Edited Dec 21, 2013
Viewed 6162
Follow
This method works in C, C++ and Java. I would like to know the science behind it.
char
int
c
c++
java
16
0
Add comment
+
Share
4 Answers
Related