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]);
The correct answer is option 3. void display(int [ROWS][COLS])- an array element is being passed as a perimeter to a function
Comments
Leave a comment