Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. We call the pieces of information that are passed to a function, which it the

ID: 3705495 • Letter: 1

Question

1. We call the pieces of information that are passed to a function, which it then uses to do its task a/an ___________.

2. A function may return __________ or __________ result(s). It may take __________ to __________ arguments.

3. List two differences between a function prototype and a function header:

___________________________________________________________

___________________________________________________________

4. Function prototypes are located ________________________________.

5. If a function does not return anything, then the return type on the function prototype and function header is _____________.

Explanation / Answer

1.ans

We call the pieces of information that are passed to a function, which it then uses to do its task a/an argument(s).

2.ans

A function may return one or zero result(s). It may take one to many arguments.

3.ans

There are following two differences between a function prototype and a function header:

a) Function prototype sare the declaration of function which shows the signature of the function with return type

Where as, A function header is part of a function definition without the body of function means before first { brace.

b) Function prototypes are located in header files whereas function header located in source file.

4.ans

Function prototypes are located in header files.

5. ans

If a function does not return anything, then the return type on the function prototype and function header is void.