Consider the following statements to initialize a-02587
Consider the following statements to initialize a two-dimensional array.<br>int arr[2][3] = {4, 8, 9, 2, 1, 6} ;<br>int arr[3][2] = {4, 8, 9, 2, 1, 6} ;<br>int arr[][2] = {{4,8},{9, 2},{1, 6}} ;<br><br>Which of the following option(s) are correct to initialize a two-dimensional array with 3 rows and 2 columns?
This multiple choice question (MCQ) is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Final Term - Quiz No.7.
Consider the following statements to initialize a two-dimensional array.
int arr[2][3] = {4, 8, 9, 2, 1, 6} ;
int arr[3][2] = {4, 8, 9, 2, 1, 6} ;
int arr[][2] = {{4,8},{9, 2},{1, 6}} ;
Which of the following option(s) are correct to initialize a two-dimensional array with 3 rows and 2 columns?
int arr[2][3] = {4, 8, 9, 2, 1, 6} ;
int arr[3][2] = {4, 8, 9, 2, 1, 6} ;
int arr[][2] = {{4,8},{9, 2},{1, 6}} ;
Which of the following option(s) are correct to initialize a two-dimensional array with 3 rows and 2 columns?
(ii) only
(iii) only
(ii) and (iii)
and (iii)