# include int main ( ) { char c; // // Use a BACKSLASH to indicate that the following character is not used // in the regular way. \' means this is just a single quote, not a // character delimiter. // c = '\''; printf ( " C(char) = %c, C(int) = %i\n", c, c ); // // Now let's print the string again, with double quotes around the // single quote. But C will think our double quotes mean "terminate the string" // so we use a backslash combination there too! \" means this is just // a double quote character. // c = '\''; printf ( " C(char) = \"%c\", C(int) = %i\n", c, c ); // // How would you print a backslash character? // c = '\\'; printf ( " C(char) = \"%c\", C(int) = %i\n", c, c ); // // There is a character that makes a new line. // It's not on the keyboard. How do we use it, and how do we print it? // c = '\n'; printf ( " C(char) = \"%c\", C(int) = %i\n", c, c ); // // The NULL character doesn't do much for us, but C uses it a lot // to mark the end of a string. Here is how it can be set and printed. // c = '\0'; printf ( " C(char) = \"%c\", C(int) = %i\n", c, c ); return 0; }