Shared Flashcard Set

Details

Computer Science Chpt 6
Functions Terminology -- C++
7
Computer Science
Undergraduate 3
02/28/2013

Additional Computer Science Flashcards

 


 

Cards

Term
Return Type:
Definition
A function can send a value to the part of the program that executed it. The data type of the value that is sent from the function.
Term
Name:
Definition
You should give each function a descriptive name. In general, the same rules that apply to variable names also apply to function names.
Term
Parameter List:
Definition
The program can send data into a function. A list of variables that hold the values being passed to the function.
Term
Body:
Definition
is the set of statements that perform the function's operation. They are enclosed in a set of braces.
Term
When called the function is what?
Definition
function is executed
Term
Function Header:
Definition
is a part of the function definition. It declares the function's return type, name, and parameter list. It is not terminated with a semicolon because the definition of the functions body follows it.
Term
Function Call:
Definition
is a statement that executes the function, so it is terminated with a semicolon like all other C++ statements. The return type is not listed in the function call, and if the program is not passing data into the function, the parentheses are left empty.
Supporting users have an ad free experience!