C Functions Flashcards
What is a C function call
Asking a function to perform its assigned task
What is a C function body
Code between the opening and closing braces following the function name
What are C function arguments
values passed to a function inbetween the parenthesis
What begins and ends a function body
A left brace { and a right brace }
What is a C function
A group of statements that perform a specified set of instructions
What do C function Prototypes do
Tells C the data type returned by the function, the number of parameters received, the data types of the parameters, the order of the parameters
Where should C function prototypes be placed
Outside the main() function and before the main() function starts
What do C function definitions do
Implement the function prototype
What does the data type in the parenthesis to the right of the function name do in a C function prototype
Informs the compiler that the function expects to receive a value of that type from the caller
What does the data type to the left of the function name do in a C function prototype
Informs the compiler that the function returns a value of that type to the caller
What does a C function header contain
A return-value-type, function-name, and a parameter-list
What is a parameter-list in a C function header
A comma-separated list that specifies the parameters received by the function when it’s called
What is a C recursive function
a function that calls itself either directly or indirectly through another function