Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.c Subject: Re: c programming style Message-ID: <2418@sun.uucp> Date: Tue, 16-Jul-85 03:20:08 EDT Article-I.D.: sun.2418 Posted: Tue Jul 16 03:20:08 1985 Date-Received: Thu, 18-Jul-85 04:12:09 EDT References: <11570@brl-tgr.ARPA> <935@teddy.UUCP> Organization: Sun Microsystems, Inc. Lines: 21 > argv++; > > This will get us to the next pointer, whereas, > > argv = argv + 1; > > will NOT (unless by the happy happinstance that a pointer is exactly > the same size as a character!) Excuse me, but what alternate universe did you get your C Reference manual from? Both of the two above statements have the *exact same effect* in C; they cause "argv" to point to the pointer that follows the one it pointed to before the statement. The C Reference Manual: 7.2 Unary operators ...The expression ++x is equivalent to x += 1. Guy Harris