Path: chuka.playstation.co.uk!toby From: toby@angst.forefront.com.au (Toby Sargeant) Newsgroups: scee.yaroze.freetalk.english Subject: Re: ANSI C code Date: 18 Mar 1998 10:49:56 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 29 Message-ID: References: <6e5qdr$p7b1@emeka.playstation.co.uk> <6e693k$6nq4@chuka.playstation.co.uk> <3506CCE6.7301@127.0.0.1> <3507E51B.763DB0F2@hotmail.com> <6em62v$dud33@chuka.playstation.co.uk> Reply-To: tjs@cs.monash.edu.au NNTP-Posting-Host: modem02.cs.monash.edu.au X-Newsreader: slrn (0.9.4.6 UNIX) On Tue, 17 Mar 1998 15:54:49 -0000, JohnT wrote: >Ok, I was only going by what I was taught. Here it is... > >The semicolon ; is used to end a statement. Therefore the following are >correct... from K&R second ed, p236. statement: labeled-statement expression-statement compound-statement selection-statement iteration-statement jump-statement expression-statement: expression_opt ; expression: assignment-expression expression , assignment-expression so a statement is (among other things) an optional assignment, followed by a semicolon, which is equivalent to a single semicolon. Sorry to be a rules lawyer. toby.