[Contents] [Prev] [Next] [Index] [Report an Error]

Literals

A literal is an exact representation of numeric or string values. Every number is a literal. Place single or double quotation marks around a string to identify it as a string literal. You can specify special characters within a literal string by prefacing them with a backslash as follows:

quotation mark

\’

double quotation mark

\”

tab

\t

carriage return

\r

new line

\n

string end

\0

backslash

\\

Examples

42
98.6
‘string literal’
“ count” 
“ \t this string starts with a tab and ends with a tab \t” 

[Contents] [Prev] [Next] [Index] [Report an Error]