2.13. GlossaryΒΆ

assignment:

A statement that assigns a value to a variable.

composition:

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

declaration:

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

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.

keyword:

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

modulus:

An operator that works on integers and yields the remainder when one number is divided by another. In C++ it is denoted with a percent sign (%).

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.

statement:

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

type:

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

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.

You have attempted of activities on this page