C Functions Flashcards

1
Q

What is a C function call

A

Asking a function to perform its assigned task

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

What is a C function body

A

Code between the opening and closing braces following the function name

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

What are C function arguments

A

values passed to a function inbetween the parenthesis

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

What begins and ends a function body

A

A left brace { and a right brace }

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

What is a C function

A

A group of statements that perform a specified set of instructions

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

What do C function Prototypes do

A

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

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

Where should C function prototypes be placed

A

Outside the main() function and before the main() function starts

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

What do C function definitions do

A

Implement the function prototype

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

What does the data type in the parenthesis to the right of the function name do in a C function prototype

A

Informs the compiler that the function expects to receive a value of that type from the caller

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

What does the data type to the left of the function name do in a C function prototype

A

Informs the compiler that the function returns a value of that type to the caller

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

What does a C function header contain

A

A return-value-type, function-name, and a parameter-list

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

What is a parameter-list in a C function header

A

A comma-separated list that specifies the parameters received by the function when it’s called

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

What is a C recursive function

A

a function that calls itself either directly or indirectly through another function

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