To get the char code in C you can use the following snippet.

Sample C

char testChar = 'a';
printf("%d",testChar);

One thought on “How to get the char code in C”

Leave a Reply