aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-02_escape-sequences.c
blob: 8d122e047b3f7b450eca995bd525e66f66424c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

/* The C Programming Language, 2nd Edition
 *
 * Exercise 1-2: Experiment to find out what happens when printf()'s argument
 * string contains \c, where 'c' is some character that's not \, t, b, n, or ".
 *
 * Answer: This file will not (normally) compile because \d is not a valid
 * escape sequence. Your compiler may ignore this, however.
 */

int main(void) {
	printf("Hello world! \d\n");
	return 0;
}