chapter 6 Flashcards
What is a module?
another name for functions
What are value returning functions?
functions that return a defined datatype
What are void functions?
functions that do not return a data type
What does a heading refer to in the context of functions?
function header. Shows the datatype, name of the function, and formal parameter list
What is a formal parameter?
variable declared in the header
What is an actual parameter?
variable or expression listed in a call to a function
What does functionType refer to?
data type or return type of a function
What is a function prototype?
function heading without the body
What is a value parameter?
formal parameter that gets a copy of the corresponding actual parameter
What is a reference parameter?
points to the data of the actual parameter allowing you to edit the actual parameter’s data
What does scope refer to?
where in the program identifiers is accessible
What are local identifiers?
identifiers declared within a function
What are global identifiers?
identifiers that are declared outside of every function and is accessible by every function
What is the scope resolution operator?
::
What does extern refer to in programming?
used in order to access a variable that has not been initialized yet
What are automatic variables?
variables created and destroyed from memory for the duration of their block
What are static variables?
variables that remain in memory until the program stops executing
What is a driver program?
separate program to test a function
What is a function stub?
function not fully coded for testing purposes
What is function overloading?
having functions with the same name with at least slight differences in formal parameter lists