array or pointer
Charles Hannum
CMH117 at PSUVM.BITNET
Sat Nov 18 03:30:59 AEST 1989
If you knew that you always want to read 500 record of exactly 80 bytes, there
is no reason to dynamically allocate the memory. It should be statically
allocated. i.e.:
char foo[500][80];
Note: I used the words "byte" and "char" interchangeably here. This may vary
depending on the implementation. Unfortunately, most of the compilers
I've used don't have a "byte" type.
More information about the Comp.lang.c
mailing list