Answers for "c char to ascii int"

C
1

c char to int

int i;
char c = 'A'; 
i = (int)c;
Posted by: Guest on July-11-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 "C"

Browse Popular Code Answers by Language