Array indexing vs. pointers...

Michael J. Steiner U23405 at UICVM
Sun Sep 11 08:55:52 AEST 1988


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 at UICVM.BITNET



More information about the Comp.lang.c mailing list