T
Tony Johansson
Hello Experts!!
I know that you can initialize a two-dimensional array of integer in this
way
int number[][3] = { {1,6,78}, {7,2,23} }
Here we have declared a two dimensional array with 2 rows, each row
containing three elements.
But now to my question can you declare and initialize a two-dimensional
array in this way or is it nessesary to define the size of each element as I
did above with 3 in that example.
int number[][] = { {1,6,78}, {7,2,23} }
//Tony
I know that you can initialize a two-dimensional array of integer in this
way
int number[][3] = { {1,6,78}, {7,2,23} }
Here we have declared a two dimensional array with 2 rows, each row
containing three elements.
But now to my question can you declare and initialize a two-dimensional
array in this way or is it nessesary to define the size of each element as I
did above with 3 in that example.
int number[][] = { {1,6,78}, {7,2,23} }
//Tony