TIP: Click on subject to list as thread! ANSI
echo: cis.tandy.coco
to: Kevin Darling (UG Pres) 76703,4227 (X)
from: James Jones 76257,562
date: 1990-05-03 21:04:44
subject: #3244-#C arrays

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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.