• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define FOO 0x10
2 
main()3 int main() {
4     printf("0 = %d\n", 0);
5     printf("010 = %d\n", 010);
6     printf("0x10 = %d\n", FOO);
7     printf("'\\a' = %d\n", '\a');
8     printf("'\\b' = %d\n", '\b');
9     printf("'\\f' = %d\n", '\f');
10     printf("'\\n' = %d\n", '\n');
11     printf("'\\r' = %d\n", '\r');
12     printf("'\\t' = %d\n", '\t');
13     printf("'\\v' = %d\n", '\v');
14     // Undefined
15     // printf("'\\z' = %d\n", '\z');
16     printf("'\\\\' = %d\n", '\\');
17     printf("'\\'' = %d\n", '\'');
18     printf("'\\\"' = %d\n", '\"');
19     printf("'\\?' = %d\n", '\?');
20     printf("'\\0' = %d\n", '\0');
21     printf("'\\1' = %d\n", '\1');
22     printf("'\\12' = %d\n", '\12');
23     printf("'\\123' = %d\n", '\123');
24     printf("'\\x0' = %d\n", '\x0');
25     printf("'\\x1' = %d\n", '\x1');
26     printf("'\\x12' = %d\n", '\x12');
27     printf("'\\x123' = %d\n", '\x123');
28     printf("'\\x1f' = %d\n", '\x1f');
29     printf("'\\x1F' = %d\n", '\x1F');
30 }
31