Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!ucbvax!UICVM!U23405 From: U23405@UICVM (Michael J. Steiner) Newsgroups: comp.lang.c Subject: Array indexing vs. pointers... Message-ID: <8809191521.AA17824@ucbvax.Berkeley.EDU> Date: 10 Sep 88 22:55:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 6 First, I have a question. How and why is array indexing slower than pointer arithmetic? They are very similar. Also, I think that compilers should automatically translate array indexing into pointer arithmetic when dealing with arrays in C. Any comments, opinions? Michael Steiner Email: U23405@UICVM.BITNET