Functions Flashcards
1
Q
returnType
A
int if it stores data after the function, void if it doesn’t
2
Q
parameters
A
the inputs needed to give the function a range
3
Q
what does a function look like?
A
void function(int 1, int 2) {
//insert code here
return value;
}
4
Q
how are functions used after definition
A
int var = function(3, 4); // result now holds 7
5
Q
A