Unformatted text preview: char variable can be assigned a numerical value. Characters, Escape Sequences, and Strings Some characters do not have their own symbol and must be referenced by an escape sequence. Some escape sequences are: '\\'-- backslash '\''-- single quotation mark '\"'-- double quotation mark '\b'-- backspace '\n'-- new line '\r'-- carriage return '\t'-- tab A string is a sequence of characters ending in the null character (whose escape sequence is '\0' ). As a beginner, you can usually ignore this definition because strings are usually simply written as constants between double quotes, such as: "florsheim" or "Enter the quantity of shipments:\t"...
View Full Document
This note was uploaded on 12/12/2011 for the course CIS 101 taught by Professor Keefe during the Spring '08 term at Texas State.
- Spring '08