
Prelab Activities
Review
Identifiers can name actions as well as data objects. There are two types of named
actions in C++: value-returning functions and void functions. The name of a value-
returning function is used in an expression; the action is executed and the returned
value is substituted in the expression. sqrt and pow are named actions that are value-
returning functions. The name of a void function is used as a statement in the
executable part of a program. The action is executed, and the program continues with
the next statement. The get in cin.get and the open in inData.open are void-
function identifiers that name actions or processes. ...