Difference between "char *arr" and "char arr[]"

Tom Ivar Helbekkmo tih at barsoom.nhh.no
Sun Sep 23 22:07:03 AEST 1990


In a fit of pure idiocy, I wrote:

>	global unsigned long avail[A,B,C];

and as several people have pointed out already, that's not how you declare
a multi-dimensional array in C.  *blush*

What can I say?  I'd just resurfaced after a lot of FORTRAN programming
involving arrays, though...  Still, I must have been temporarily blind.

Thanks to all who took the time to point this out to me!  :-)

-tih
-- 
Tom Ivar Helbekkmo, NHH, Bergen, Norway.  Telephone: +47-5-959205
tih at barsoom.nhh.no, thelbekk at norunit.bitnet, edb_tom at debet.nhh.no



More information about the Comp.lang.c mailing list