convert char into int ascii in c code example
Example 1: turn a char into an int in c
int x = character - '0';
Example 2: how to transform a char to ascii code in c
int a_as_int = (int) 'a';
int x = character - '0';
int a_as_int = (int) 'a';