Commit | Line | Data |
---|---|---|
d6c1f319 C |
1 | |
2 | (Section 1.2) | |
3 | Write a program to print | |
4 | the value of the character 'X' in | |
5 | octal. Compile it and run it. | |
6 | Then type ready. | |
7 | #user | |
8 | a.out >test | |
9 | grep 130 test >/dev/null | |
10 | #succeed | |
11 | A possible solution: | |
12 | ||
13 | main() | |
14 | { | |
15 | printf("%o\n", 'X'); | |
16 | } | |
17 | #log | |
18 | #next | |
19 | 2.1a 10 |