This document describes common escape sequences used in printing text, including \n for newline, \t for tab, and \r for carriage return. It also lists the escape sequences for alert (\a), backslash (\\), and double quote (\" ).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
32 views2 pages
1.21 A Simple Program: Printing A Line of Text
This document describes common escape sequences used in printing text, including \n for newline, \t for tab, and \r for carriage return. It also lists the escape sequences for alert (\a), backslash (\\), and double quote (\" ).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
21 A Simple Program: Printing a Line of Text
Escape Sequence \n \t \r Description Newline. Position the screen cursor to the beginning of the next line. Horizontal tab. Move the screen cursor to the next tab stop. Carriage return. Position the screen cursor to the beginning of the current line; do not advance to the next line. Alert. Sound the system bell. Backslash. Used to print a backslash character. Double quote. Used to print a double quote character.