Abstract

A program variable is a language abstraction for an area of memory in which data is stored.  Variables are characterized by name, address, type, value, scope, and lifetime.

Form

variable   →   identifier
identifier   →   ( letter | _ ) ( letter | digit | _ ) ∗
letter   →   a | b | c | d | e | f | g | h | i | j | k | l | m
| n | o | p | q | r | s | t | u | v | w | x | y | z
| A | B | C | D | E | F | G | H | I | J | K | L | M
| N | O | P | Q | R | S | T | U | V | W | X | Y | Z
digit   →   0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Name

Address

Type

Scope

Lifetime

Usage

Limitations

Examples

See Also

See Also

C++ Now   C++ Variables
COBOL Now   COBOL Variables
Java Now   Java Variables
Pascal Now   Pascal Variables

External Links

MSDN   C Identifiers

Valid HTML 4.01 Transitional Valid CSS!

Site Logo copyright 1999-2007, j.h.young, revised 7/14/07