Em 09/04/2014 16:46, Dave Tweed escreveu: > Byron Jeff wrote: >> On Wed, Apr 09, 2014 at 01:19:18PM -0400, Dave Tweed wrote: >>> Byron Jeff wrote: >>>> I remember the separator/terminator difference from Pascal. Used to dr= ive >>>> me nuts. Reason is the inconsistency. Terminators, while annoying, are >>>> consistent. >>> Technically, the semicolon is a statement *seaparator* in C, too. >> Nope. This is not correct. You can see the difference when you have one >> statement in a block and more that one. > Yes, it is correct. > >> In C (one statement): >> >> if (test) >> i =3D 1; > Which could also be written: > > if (test) i =3D 1; > >> In C (more than one statement): >> >> if (test) { >> i =3D 1; >> j =3D 2; >> } > Which could also be written: > > if (test) { > i =3D 1; > j =3D 2 > } > > or even: > > if (test) { i =3D 1; j =3D 2 } > > All of this is possible becuase ';' is a separator, not a terminator. Man, did you try to compile this? You are wrong, the ';' is really a statement terminator and can be confirmed by just trying to compile your example in *any* C compiler. Did you understand that they are talking about "C" language? --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .