convert char to single digit code example Example: convert char to single digit char c = '1'; int i = c - '0'; // i is now equal to 1, not '1'