Path: chuka.playstation.co.uk!news From: "JohnT" Newsgroups: scee.yaroze.freetalk.english Subject: Re: ANSI C code Date: Wed, 18 Mar 1998 21:22:49 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 45 Message-ID: <6epdlt$l5r8@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. > Hey, I'm not saying that my teacher was correct just that that is what I was taught!!! ;) I welcome people to correct me when I am wrong so that I can better myself :) 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 ------------------------------------------------