Re^2: Why does C hate 2d arrays?

Gil Winograd akcs.fish at vpnet.chi.il.us
Sat May 26 19:55:04 AEST 1990


Recently I had to write C code to handle a data structure which
consisted of *variably dimensioned* AND *variable size per dimension*
arrays. Of course, it was implemented as a one-dimensional array,
through which I had to go through involved calculations to get the
index right
! (Especially when doing loops through some of the dimensions but
not others...) Does Algol/Pascal handle this situation any better?

-* Gil



More information about the Comp.lang.c mailing list