from character to integer in C code example Example: turn a char into an int in c int x = character - '0';