Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!cmcl2!brl-adm!adm!bob@Iago.Caltech.EDU
From: bob@Iago.Caltech.EDU (Robert S. Logan)
Newsgroups: comp.lang.c
Subject: Re: Style [++i vs i++]
Message-ID: <8298@brl-adm.ARPA>
Date: Wed, 15-Jul-87 13:03:14 EDT
Article-I.D.: brl-adm.8298
Posted: Wed Jul 15 13:03:14 1987
Date-Received: Fri, 17-Jul-87 06:11:59 EDT
Sender: news@brl-adm.ARPA
Lines: 21

I think the difference between
	++i;
and
	i++;
is mostly a matter of style, with any reasonable compiler.

But I prefer
	i += 1;
as a matter of personal taste. I know, I know, three more keystrokes...
Even the dullest compiler will probably generate good code when it
sees += of a small constant.

--
Robert S. Logan
Campus Computing Organization, 158-79 Caltech, Pasadena, CA, 91125
818-356-4631
rslogan@caltech.bitnet
bob@iago.caltech.edu
...!ucbvax!bob%iago@hamlet.caltech.edu

The above opinions are licensed (not sold)...