creating and using functions Flashcards
1
Q
function header syntax
A
return_type function_name (parameters);
2
Q
a function name can be…?
A
anything the programmer wishes
3
Q
parameters
A
optional
new variables, each separated by a comma
variables in a function definition
4
Q
a function header does…?
A
nothing, besides declaring a function
5
Q
function body
A
code wrapped in curly braces
required for a function to do anything
6
Q
invoking a function
A
calling a function/using a function in main
functions cannot run automatically
7
Q
arguments
A
variables passed as inputs for any function