From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/escape.html | 86 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 reference/C/FUNCTIONS/escape.html (limited to 'reference/C/FUNCTIONS/escape.html') diff --git a/reference/C/FUNCTIONS/escape.html b/reference/C/FUNCTIONS/escape.html new file mode 100644 index 0000000..3ba17a3 --- /dev/null +++ b/reference/C/FUNCTIONS/escape.html @@ -0,0 +1,86 @@ +Escape sequences + + + + +
+

Escape sequences

+
+

+ +The following is a list of escape sequences. +

+

+	\n 	Newline
+	\t	Horizontal Tab
+	\v	Vertical Tab
+	\b	Backspace
+	\r	Carriage Return
+	\f	Form feed
+	\a	Audible Alert (bell)
+	\\	Backslash
+	\?	Question mark
+	\'	Single quote
+	\"	Double quote
+	\000	Oct - No one uses Octal unless they have an ICL background...
+	\xhh	Hex number
+	    	Decimal table just for fun.
+        \       Preprocessor line continuation, must be immediately followed 
+	        by a newline.
+
+These can be used anywhere that C expects to see a character constant. +Must be time for a quick example. +
+	main()
+        {
+	  char word[]="\x6d\x6f\x64\x65\x6d"; 
+	   
+	  printf("%s\n", word);
+	}
+
+Cant you work out what will appear if you ran this program?? +
+

Examples:

+ + Example program. + + + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + + + + + + + + + + + + + -- cgit v1.2.3-54-g00ecf