RosettaCodeData/Task/Character-codes/C/character-codes.c
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

7 lines
182 B
C

#include <stdio.h>
int main() {
printf("%d\n", 'a'); /* prints "97" */
printf("%c\n", 97); /* prints "a"; we don't have to cast because printf is type agnostic */
return 0;
}