Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!caesar.cs.montana.edu!blake!milton!hardbody From: hardbody@milton.acs.washington.edu (Hardbody) Newsgroups: comp.lang.c Subject: array or pointer Keywords: array, pointer Message-ID: <709@milton.acs.washington.edu> Date: 17 Nov 89 08:18:24 GMT Distribution: usa Organization: Univ of Washington, Seattle Lines: 14 Suppose I wanted to read 500 records, each of 80 bytes long, from a file, How should I store them? Should I do (1) char line[500][80]; since I already know the size of the file. OR (2) char *line[500]; But before we could use 'line,' we have to use 'malloc' to allocate memory to the array of pointers. Which case is faster as far as the time it takes to load the file in is concerned? Thanks plenty.