Answers for "get the ascii number of a char into a int variable in c"

C
8

turn a char into an int in c

int x = character - '0';
Posted by: Guest on November-04-2020
-1

how to transform a char to ascii code in c

int a_as_int = (int) 'a';
Posted by: Guest on June-22-2020

Code answers related to "get the ascii number of a char into a int variable in c"

Code answers related to "C"

Browse Popular Code Answers by Language