Vocabulary II

iteration
one execution of a loop body
sentinel
value added to the end of the input to signal that there is no more data
count controlled loop
loop that executes until a particular number of iterations have been completed.
event controlled loop
loop that executes until a particular event occurs. Usually the event is the input of a sentinel value or reaching end of file on the input file.
relational operator
an operator that compares the magnitude of two values and results in value of true (1) or false (0). The relational operators are <, >, <=, >=, ==, and !=.
logical operator (boolean operator)
an operator that combines true/false values and results in a value of true (1) or false (0). The logical operators are && (and), || (or), and ! (not). && and || are binary operators; ! is a unary operator.
logical expression (boolean expression)
an expression that contains logical and/or relational operators and which evaluates to either true (1) or false (0).
function call
the statement that causes a function to execute
function definition
consists of the function header and the function body
function header
first line of a function definition; specifies the return type of the function, name of the function, and the type and name of each parameter.
function body
follows the function header; contains the statements that will be executed when the function is called. The function body is enclosed in braces { }.
function prototype
serves as the declaration for a function; specifies the return type of the function, name of the function, and the type of each parameter. A prototype is required if the function body appears after a call to the function.
actual parameter/argument
parameter in a function call.
formal parameter
parameter in a function header.

Email Me | Office Hours | My Home Page | Department Home | MCC Home Page

© Copyright Emmi Schatz 2002