How to get the char code in C Administrator July 9, 2014 1 Comment To get the char code in C you can use the following snippet. Sample C char testChar = 'a'; printf("%d",testChar);