Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <10135@smoke.BRL.MIL> Date: 27 Apr 89 03:46:29 GMT References: <2459@nmtsun.nmt.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <2459@nmtsun.nmt.edu> kelly@titan.nmt.edu (Sean Kelly) writes: >He expects that many compilers would instead add the value of i to the >pointer a, and then reference the item stored there. In C, pointer arithmetic ALWAYS involves scaling by the size of the pointed-to objects. This is one of Dennis's really useful insights. It is so fundamental to C that I have to worry about an instructor who claims otherwise.