Answers for "string to char c"

C
11

turn a char into an int in c

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

int to char in c

c = i +'0';
Posted by: Guest on October-20-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