Answer the following statements true (T) or false (F)

1. If a function is expecting a pass by reference parameter, you can pass an index variable from an array of the same base type to that function.
2. When you have a function that expects an array, it should also expect the size of the array or the number of indexed variables with valid data.
3. The following function declaration guarantees the values in the array argument are not changed.
void function1(int array[], int numElements);
4. The following function will work with any size integer array.
void function1(int array[], int numElements);
5. If you use the const modifier in a function declaration, you do not include it in the function definition.


1. TRUE
2. TRUE
3. FALSE
4. TRUE
5. FALSE

Computer Science & Information Technology

You might also like to view...

The ________ date format is applied to the date Tuesday, January 31, 2012

Fill in the blank(s) with correct word

Computer Science & Information Technology

Press F6 to display the Go To dialog box

Indicate whether the statement is true or false

Computer Science & Information Technology

What is a method that uses another method considered to be?

A. a method peer B. a server method C. a method pair D. a client of the other method

Computer Science & Information Technology

An extended partition can contain many subpartitions called ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology