Path: chuka.playstation.co.uk!news From: "JohnT" Newsgroups: scee.yaroze.freetalk.english Subject: Re: ANSI C code Date: Wed, 18 Mar 1998 21:29:53 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 45 Message-ID: <6epe34$l5r9@chuka.playstation.co.uk> 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> NNTP-Posting-Host: nettech.demon.co.uk X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Toby Sargeant wrote in message ... >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. > And another thing, with this correction of yours doesn't my description still hold true? I may have worded some parts incorrectly but what I am trying to get across is still correct, yes? JohnT ------------------------------------------------ Contact me at http://wwp.mirabilis.com/9461567 Send e-mail to johnt@nettech.demon.co.uk Visit my web site at www.coco.net.uk/johnt ------------------------------------------------