Re: [gtk-list] Strange gcc behaviour
- From: Didimo Emilio Grimaldo Tunon <emilio_tunon nl compuware com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Strange gcc behaviour
- Date: Fri, 7 Aug 1998 09:15:38 +0200 (METDST)
> just a quick one ...
> why does this work ?
>
> int a,b,c;
>
> a = 56 + 3,
> b = 29 * 2,
> c = a * 2;
>
> (those are really COMMAS up there , NOT SEMICOLONS)
*looks* odd, and I would never do such a thing but any C book would
mention the 'comma operator' (if I remember correctly), that's why
this also works (not that it accomplishes anything useful...):
int i,j;
while ((i = strlen(something)), j < i) {
blah blah
}
--
D. Emilio Grimaldo Tunon Compuware Europe B.V. (Uniface Lab)
Software Engineer Amsterdam, The Netherlands
emilio_tunon@nl.compuware.com Tel. +31 (0)20 3116 200 ext. 413
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]