#: 3253 S10/Tandy CoCo
03-May-90 21:04:44
Sb: #3244-#C arrays
Fm: James Jones 76257,562
To: Kevin Darling (UG Pres) 76703,4227 (X)
int foo[2][6] is a declaration that says foo is a two-dimensional array with
two rows and six columns. Multi-dimensional arrays are darned near never used
in C, largely because C forbids anything but constants as array bounds, so that
it's highly obnoxious to write, say, routines to solve systems of linear
equations in C. One winds up faking it out and doing explicit offset
calculations for a one-dimensional array a lot of the time.
I don't even remember offhand whether C uses row or column-major order.
There is 1 Reply.
|