c programming style

Jordan K. Hubbard jordan at greipa.UUCP
Tue Jul 16 15:33:54 AEST 1985


In article <935 at teddy.UUCP> rdp at teddy.UUCP (Richard D. Pierce) writes:
>
>One of the points with the C i++ versus i = i = 1 issue is the one of
>pointers (although some alluded to it).
>
>	  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!)


Note that I have not included enough of this gentleman's article to
fully outline his assertions, but in a nutshell, he claims that
pointer arithmetic does not work unless the unary operators are
applied. Um, I don't knoe which compiler HE'S using, but it must
be severely braindamaged (someone's thesis project?). According
to K&R and every C compiler I've ever used, this is simply not true.
pointer = pointer + 1 works fffffffffineee..

-- 
			Jordan K. Hubbard
			@ Genstar Rental Electronics.
			Palo Alto, CA.
			{pesnta, decwrl, dual, pyramid}!greipa!jordan

			"ack pfffft. gag. retch. barf.. ack"

				- Bill again.



More information about the Comp.lang.c mailing list