2.11. GlossaryΒΆ

variable:

A named storage location for values. All variables have a type, which determines which values it can store.

value:

A letter, or number, or other thing that can be stored in a variable.

type:

A set of values. The types we have seen are integers (int in C++) and characters ( char in C++).

keyword:

A reserved word that is used by the compiler to parse programs. Examples we have seen include int, void and endl.

statement:

A line of code that represents a command or action. So far, the statements we have seen are declarations, assignments, and output statements.

declaration:

A statement that creates a new variable and determines its type.

assignment:

A statement that assigns a value to a variable.

expression:

A combination of variables, operators and values that represents a single result value. Expressions also have types, as determined by their operators and operands.

operator:

A special symbol that represents a simple computation like addition or multiplication.

operand:

One of the values on which an operator operates.

precedence:

The order in which operations are evaluated.

composition:

The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.

You have attempted of activities on this page