This preview shows page 1. Sign up to view the full content.
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
- Spring '08