hey guys
How do u define a 2by 5 array..is it mean
int t [2][5]..
how do u figure out how many elements in the array?
hey guys
How do u define a 2by 5 array..is it mean
int t [2][5]..
how do u figure out how many elements in the array?
>>How do u define a 2by 5 array..is it mean
Yes you are right.
>>how do u figure out how many elements in the array?
first dimension times second dimenson. Very similar to a chess board where there are 8 rows and 8 columns, which means there are 64 squares. That's the same identical concept with 2d arrays. In your example 2 X 5 = 10 elments.
Yes, again. Looks like you have it figured out.
thnks dude