Lady Ada

Ada '83 Language Reference Manual

Copyright 1980, 1982, 1983 owned by the United States Government. Direct reproduction and usage requests to the Ada Information Clearinghouse.


2.5. Character Literals

[PREVIOUS][UP][NEXT]

A character literal is formed by enclosing one of the 95 graphic characters (including the space) between two apostrophe characters. A character literal has a value that belongs to a character type.

    character_literal ::= 'graphic_character' 

Examples:

    'A'   '*'   '''   ' ' 

References: character type, graphic character, literal, space character.

Rationale references: 2.1 Lexical Structure

Style Guide references: 3.2.5 Constants and Named Numbers

[INDEX][CONTENTS]


[Ada Information Clearinghouse]

Address any questions or comments to adainfo@sw-eng.falls-church.va.us.