5.13. Glossary

return type:

The type of value a function returns.

return value:

The value provided as the result of a function call.

dead code:

Part of a program that can never be executed, often because it appears after a return statement.

scaffolding:

Code that is used during program development but is not part of the final version.

void:

A special return type that indicates a void function; that is, one that does not return a value.

overloading:

Having more than one function with the same name but different parameters. When you call an overloaded function, C++ knows which version to use by looking at the arguments you provide.

boolean:

A value or variable that can take on one of two states, often called true and false. In C++, boolean values can be stored in a variable type called bool.

flag:

A variable (usually type bool) that records a condition or status information.

comparison operator:

An operator that compares two values and produces a boolean that indicates the relationship between the operands.

logical operator:

An operator that combines boolean values in order to test compound conditions.

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

You have attempted 1 of 4 activities on this page