Character String

A character string is created by enclosing a sequence of characters by a pair of double quotes or single quotes.
>> s = "Yankee Doodle went to town."
       Yankee Doodle went to town.
When using double quotes, the character \ acts as an escaping signal in order to include special characters in the string. The defined escaping sequences are the same as provided by the C programming language. The complete list is given in the table. Note that the backslash character doesn't have a special meaning in a single quoted string.


\a alert (bell) character \\ backslash
\b backspace \? question mark
\f formfeed \' single quote
\n newline \" double quote
\r carriage return \ooo octal number
\t horizontal tab \xhh hexadecimal number
\v vertical tab    



Subsections

oz 2009-12-22