Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: a style question
Message-ID: <1990Sep30.050655.13212@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <7341@darkstar.ucsc.edu>
Date: Sun, 30 Sep 90 05:06:55 GMT

In article <7341@darkstar.ucsc.edu> aryeh@cash.uucp (the over worked C something or another) writes:
>Since I going to be doing my first team effort I want to know if this is bad 
>style:
>	for(x=0;x!=100;x++) ...

Most people find it more readable with a bit of space and the statement
on the next line:

	for (x = 0; x != 100; x++)
		...

The cautious would also recommend `x <= 100', but in this situation that
is arguable.

I assume `x' is an integer variable, not floating-point.
-- 
Imagine life with OS/360 the standard  | Henry Spencer at U of Toronto Zoology
operating system.  Now think about X.  |  henry@zoo.toronto.edu   utzoo!henry
