From: Kevin Newsgroups: comp.os.msdos.djgpp Subject: Pointers vs subscripting. Date: Wed, 29 Sep 1999 22:48:13 +0100 Message-ID: NNTP-Posting-Host: reality-bytes.demon.co.uk X-NNTP-Posting-Host: reality-bytes.demon.co.uk:212.228.30.60 X-Trace: news.demon.co.uk 938641762 nnrp-04:26064 NO-IDENT reality-bytes.demon.co.uk:212.228.30.60 X-Complaints-To: abuse AT demon DOT net X-Newsreader: Forte Agent 1.6/32.525 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all, Ive always gone to great lengths to avoid subscripting arrays and have gone to lots of trouble to use pointers (at least in the most frequently accessed loops, I don't usualy bother with program initialisation things). I have understood that this is the quicker way of doing things. Is this still the case or do modern compilers optimise this automagically now ? nearly all of the tutorials I look at use subscripting, I guess this is to make it easier to understand ? I realsise that a little experimentation would probably answer this queastion for me, but I'm posting another message here at the same time so thought I'd just ask a quickie. I would welcome other peoples opinion on this. Kevin.