Steve Holdoway wrote:

In reality, 0 is false, non-zero is true.

That's not strictly true. Or at least didn't used to be

Huh?

A quick google reveals....
http://www.phim.unibe.ch/comp_doc/c_manual/C/CONCEPT/true_false.html

Those who indent as follows...

  for ( initial configuration,...; End conditon; iteration action,... ) {
        do something...
  }

are adopting a method designed to save paper on a hardcopy teletype, so beware!

Ugh!  Makes for unreadable code.  Why do they teach this?

C bodger since 1984. K&R rules!

Beat me by a year!

Cheers, Rex

Reply via email to