Question #214175

QUESTION 9 

Which of the following function header correctly includes a two dimensional array as its parameter? 

1. void display(int [ROWS][]); 

2. void display(int [][]);

3. void display(int [ROWS][COLS]); 

4. void display(int [][COLS]);


Expert's answer

The correct answer is option 3. void display(int [ROWS][COLS])- an array element is being passed as a perimeter to a function 


LATEST TUTORIALS
APPROVED BY CLIENTS