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

The software that contains the core components of the operating system is the ________.

a. colonel. b. central processing unit c. core d. kernel.

Computer Science & Information Technology

Compare and contrast the if single-selection statement and the while iteration statement. How are these two statements similar? How are they different?

What will be an ideal response?

Computer Science & Information Technology

What tab is accessed in order to print a slide show?

A) Insert B) Home C) Review D) File

Computer Science & Information Technology

Which of the following is NOT a consideration when purchasing memory?

A) Processor speed B) Front-side bus speed C) Column Access Strobe latency D) Capacity

Computer Science & Information Technology