Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!mcnc!ecsvax!bet From: bet@ecsvax.UUCP Newsgroups: net.lang.c Subject: Re: Pointers/arrays (harvard.215) Message-ID: <2303@ecsvax.UUCP> Date: Sat, 14-Apr-84 11:54:56 EST Article-I.D.: ecsvax.2303 Posted: Sat Apr 14 11:54:56 1984 Date-Received: Sun, 15-Apr-84 01:58:41 EST Lines: 20 When an array is passed as an argument to a function, the (local) formal parameter is filled with a pointer to the array. Thus the declarations f(array) char array[]; { ... and f(ptr) char *ptr; { ... both actually declare character pointers as arguments. Since the syntax of array reference and pointer offset/dereference are identical, that's O.K. Since the argument is actually a pointer either way, auto-increment and auto-decrement operators are also fine. Bennett Todd ...{decvax,ihnp4,akgua}!mcnc!ecsvax!bet