OneChar Literal

A *OneChar literal specifies a *OneChar constant.

Remarks

The format of the literal value is 'c' where c is any single character. *OneChar literals are distinguished from other character-type literals by the single character surrounded by two single-quote characters.

Note the difference between literals 'c' and "c". The former is of type *OneChar, while the latter is of type *Char (or *String).

Examples

'w'

'4'

See Also

*Char Data Type

*OneChar Data Type

Literals