#: 3289 S10/Tandy CoCo
05-May-90 13:17:22
Sb: #3270-#C arrays
Fm: Pete Lyall 76703,4230
To: Jeff Dege 76426,211 (X)
I'm leaving town a bit later today, but if I wasn't, I'd make an attempt to
rebut that.... int foo[6] creates foo such that it is a pointer to the base of
an array that will hold 6 ints. The declaration 'int foo[6][2]' creates an
array (assuming data definition vice function declaration), or more properly a
base pointer to an array that is 6 x 2 (or simply observed, 12 elements of
'sizeof int' long).
Agreed that foo[6][2] and foo[12] create the same sized data space, and using
the same internal geometry.
Pete
There is 1 Reply.
|