Functions part 2 Flashcards
To introduce the concept of scope 2. To understand the difference between static, local and global variables 3. To introduce the concept of functions that return a value
Variables of a function that retain their value over multiple calls to the function are called ______ variables.
global
In C++ all functions have _____ scope.
local
Default arguments are usually defined in the ______ of the function.
Prototype
A function returning a value should never use pass by ______ parameters.
referance
Every function that begins with a data type in the heading, rather than the word void, must have a(n) ________ statement somewhere, usually at the end, in its body of instructions.
return
A(n) _____ is a program that tests a function by simply calling it.
driver
In C++ a block boundary is defined with a pair of braces .
{ }
A(n) \_\_\_\_\_\_ is a dummy function that just indicates that a function was called properly.
stub
Default values are generally not given for pass by ____ parameters.
actual
functions are functions that have the same name but a different parameter list.
1