c program print character code example Example: c print char char bob = 'X'; printf("%c", bob); putchar(bob);