K&R Exercises

Exercise 1-2: Escape sequences

Write a program that prints one line containing, in order, a tab (\t), a backspace (\b), a double quote (\"), a backslash (\\) and a newline (\n), separated by single spaces.

Experiment to find out what happens when printf's argument string contains \c, where c is some character not listed above.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet