You are passing a two dimensional array, defined as below, to a function. What would be a correct function prototype? (ROWS and COLS are global constants.)

int table [ROWS] [COLS];

a) float calculate (int matrix [ ] [ COLS], int rows);
b) float calculate (int matrix [ROWS ] [ ], int rows);
c) float calculate (matrix [ ROWS] [ COLS], int rows);
d) float calculate (int matrix [ROWS ] [ ], int cols);


a) float calculate (int matrix [ ] [ COLS], int rows);

Computer Science & Information Technology

You might also like to view...

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

1) Functional programming’s filter, map and reduce operations correspond to the IEnumerable< T> extension methods Where, Select and Aggregate. 2) A Hashtable stores key–value pairs. 3) A class implementing interface IEnumerator must define only methods MoveNext and Reset, and no properties. 4) A SortedDictionary can contain duplicate keys. 5) A LinkedList can contain duplicate values.

Computer Science & Information Technology

Modular development makes a large project more manageable.

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

Computer Science & Information Technology

Cascading Style Sheets (CSS) support _________, which are numerical expressions that precisely describe colors.?

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

Computer Science & Information Technology

Methods getScreenWidth and getScreenHeight return the width and height of the screen, which are updated in the ________ method.

a. onOrientationChanged b. onSizeChanged c. onConfigurationChanged d. None of the above

Computer Science & Information Technology