Can someone pls explain this: int[] m = new int [5* 5]
I know m is a one dimensional array, the * inside new int[], what actually is the meaning?
Can someone pls explain this: int[] m = new int [5* 5]
I know m is a one dimensional array, the * inside new int[], what actually is the meaning?
AFAIK, 5* 5 does nothing more than multiplying 5 with 5.
Hence, 'm' will be an 'int' array whose length will be 25.
And all the elements will be initialized to 0 (m[0]=0...m[24]=0);
-Roopesh.