Previous: Integer and Real Number Constants To the Table of Content Next: Constant Declarations

- 2.2.5.2 -
TMT Pascal Language Description
Pascal Language Structure
Constants

String Constants

String constants are strings of ASCII characters preceded by and followed by a single quote ('). Use two single quotes ('') to represent a single quote within a string. A string may also be constructed with the number symbol # or the caret symbol^. For more information see the definition of Character types. The maximum size of a string constant is 255 characters.
The following are valid examples of string constants:
  'This is a string'
  ^G'A Bell will sound'
  #13#11'New Line'
  'Where''s the program'



Previous: Integer and Real Number Constants To the Table of Content Next: Constant Declarations
Integer and Real Number Constants Table of Content Constant Declarations

- 2.2.5.2 -