26_character_constants.c 310 B

123456789101112131415161718
  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf("%d\n", '\1');
  5. printf("%d\n", '\10');
  6. printf("%d\n", '\100');
  7. printf("%d\n", '\x01');
  8. printf("%d\n", '\x0e');
  9. printf("%d\n", '\x10');
  10. printf("%d\n", '\x40');
  11. printf("test \x40\n");
  12. return 0;
  13. }
  14. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/