Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site diku.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!mcvax!diku!kimcm
From: kimcm@diku.UUCP (Kim Christian Madsen)
Newsgroups: net.lang.c
Subject: Re: C programming style
Message-ID: <1053@diku.UUCP>
Date: Tue, 16-Jul-85 17:03:35 EDT
Article-I.D.: diku.1053
Posted: Tue Jul 16 17:03:35 1985
Date-Received: Thu, 18-Jul-85 06:09:33 EDT
References: <11434@brl-tgr.ARPA> <480@mmintl.UUCP>
Reply-To: kimcm@diku.UUCP (Kim Christian Madsen)
Organization: DIKU, U of Copenhagen, DK
Lines: 20

In article <480@mmintl.UUCP> franka@mmintl.UUCP (Frank Adams) writes:
>
>I am an experienced programmer.  I have been writing C for about four
>months now.

Does that make you a experienced C programmer ???? (-;

>I agree that "i++" is an abomination.  (I do use it, however, to be
>consistent with the rest of the code I work with.)  Actually, C has
>a third way to represent this operation: "i += 1".  Personally, I
>think this is the superior notation.  It is concise, yet easy enough
>for a person unfamiliar with the language to interpret.

The main advantage of the ++ or -- notation in C is that you can construct
a loop and control the increment-variable [let's call it ``i'' for the old
Fortran days] by means of ++i or i++ in order to assure that ``i'' has the
proper value after the loop -- instead of +/- 1 which is the default in many
other languages as Pascal/Fortran/Basic etc...

--Kimcm@diku.uucp