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...

Which values below can be used with the height attribute?

A) inches and pixels B) pixels and percentages C) pixels and points D) points and percentages

Computer Science & Information Technology

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

1) Each StringBuilder has a limit of characters that cannot be exceeded. 2) The ToString method can be used to convert a StringBuilder into a string. 3) When appropriate, using string objects instead of StringBuilder objects improves performance. 4) Method EnsureCapacity returns the capacity of a StringBuilder. 5) Properties Length and Capacity are used to return the number of characters in the StringBuilder and the total length allowed (at that time) of the StringBuilder, respectively.

Computer Science & Information Technology