Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the point in two dimensional arrays?

Status
Not open for further replies.

epicctx

Programmer
Jul 10, 1999
3
0
0
GB
Why have a two dimensional array when you can have one large one?
 
Well.... It's mainly for the programmers convienence!<br>
It is much easier to represent say, a chessboard, in a program with a 2 dimentional array than a single dim array.
 
very simply put, you need 2d and multidimensional<br>
arrays for representing multidimensional data<br>
perfect example is for an inventory program for<br>
a business: SHOE INVENTORY:<br>
Color: red blue green<br>
0 1 2<br>
Size:0 23 45 64<br>
1 14 67 78<br>
2 09 10 34<br>
3 22 11 25<br>
this is 2-dim. data got it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top