1.
void Main () { printf ("\ n"//\ GetChar is ignored ();}
2. Print character A
void Main () { printf ("\ ' a\ '"// print character A GetChar ();}
3. \f \v
void Main () { printf ("hello \f Google \v"// \f \v is a junk character GetChar ();}
4. \ r
void Main () { printf ("Hello Google \ r"// \ r is to get the cursor back to the beginning GetChar ();}
5. \
void Main () { printf ("\" e:\\qq\\bin\\qqsclauncher.exe\ ""// print path System ("\" e:\\qq\\bin\\qqsclauncher.exe\ ""// open QQ GetChar ();}
6. \ n
void Main () { printf ("\ n hahaha "// newline getchar ();}
7. \ t
void Main () { printf ("Google"); printf ("\ t"// \ t represents a tab-stop printf (" Google"); GetChar ();}
8. \b
void Main () { printf ("Google"); printf ("\b"// \b Represents a backspace getchar ();}
9. \a
#include <stdio.h>#include<stdlib.h>#include<windows.h>voidMain () {//printf ("test result ... \ n");//\ n represents a newline character \a represents a sound.printf"\a"); Sleep ( +); printf ("\a"); Sleep ( +); printf ("\a"); Sleep ( +); printf ("\a"); Sleep ( +); printf ("\a"); Sleep ( +); printf ("\a"); Sleep ( +); System ("Pause");}
C Language Basics (3)-Common escape characters