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?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>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.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Yes, again. Looks like you have it figured out.

heshangho 0 Newbie Poster

thnks dude

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.