|
|
1.1 root 1: #print
2: (Section 1.1)
3: Write a program which prints these four lines,
4: exactly as shown:
5: A tab is \t
6: A backspace is \b
7: A quote is \"
8: A backslash is \\
9:
10: Compile it, test it, then type ready.
11: #once #create Ref
12: A tab is \t
13: A backspace is \b
14: A quote is \"
15: A backslash is \\
16: #user
17: a.out >x
18: #cmp x Ref
19: #succeed
20: One solution:
21:
22: main()
23: {
24: printf("A tab is \\t\n");
25: printf("A backspace is \\b\n");
26: printf("A quote is \\\"\n");
27: printf("A backslash is \\\\\n");
28: }
29: #fail
30: Watch out for those backslashes.
31: #log
32: #next
33: 1.1e 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.