'
) or a double quotation mark ("
). You use two consecutive double quotation marks (""
) to represent one double quotation mark ("
) within a string delimited by double quotation marks. Similarly, you use two consecutive single quotation marks (''
) to represent one single quotation mark ('
) within a string delimited by single quotation marks. A literal string is a constant and its contents are never modified when it is processed. Literal strings must be complete on a single line. This means that unmatched quotation marks can be detected on the line where they occur.
0
) is called a null string.
Example 1.6. Valid strings
"Fred" "Don't Panic!" 'You shouldn''t' /* Same as "You shouldn't" */ "" /* The null string */
X
or x
, it is considered to be a hexadecimal string. If followed immediately by the symbol B
or b
, it is considered to be a binary string.