Functions Flashcards

1
Q

returnType

A

int if it stores data after the function, void if it doesn’t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

parameters

A

the inputs needed to give the function a range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does a function look like?

A

void function(int 1, int 2) {
//insert code here
return value;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how are functions used after definition

A

int var = function(3, 4); // result now holds 7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly