how to display the ascii value of a character in c code example Example: how to transform a char to ascii code in c int a_as_int = (int) 'a';