Skip to main content
Contents
Dark Mode Prev Up Next Scratch ActiveCode Profile
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
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.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
floating-point
A type of value that can contain fractions as well as integers.
initialization
A statement that declares a new variable and assigns a value to it.
call
Causes a function to be executed.
2.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
function
A named sequence of statements that performs some useful function.
parameter
A piece of information you provide in order to call a function.
argument
A value that you provide when you call a function.
You have attempted
of
activities on this page.