Skip to main content

How To Think Like a Computer Scientist C++ Edition The Pretext Interactive Version

Section 3.12 Glossary

Glossary Glossary

floating-point.
A type of variable (or value) that can contain fractions as well as integers. There are a few floating-point types in C++; the one we use in this book is double.
initialization.
A statement that declares a new variable and assigns a value to it at the same time.
function.
A named sequence of statements that performs some useful function. Functions may or may not take parameters, and may or may not produce a result.
parameter.
A piece of information you provide in order to call a function. Parameters are like variables in the sense that they contain values and have types.
argument.
A value that you provide when you call a function. This value must have the same type as the corresponding parameter.
call.
Cause a function to be executed.

Reading Questions Reading Questions

1.

2.

You have attempted 1 of 3 activities on this page.