blob: bf9e8ca1be1a34b118203b98e27be6ce6ab030bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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) {
/* Uncomment the next line for an invalid escape character! */
/*printf("Hello world! \d\n");*/
/* Compare with a valid one: */
printf("Hello world! \t\n");
return 0;
}
|