comp.lang.c
[Top] [All Lists]

Re: Implementation-defined behaviour

Subject: Re: Implementation-defined behaviour
From:
Date: Sat, 29 Mar 2008 17:10:46 -0400
Newsgroups: comp.lang.c

Herbert Rosenau <os2guy@xxxxxxxxxxxxx> wrote:
>> Ioannis Vranos wrote:
>> > 
>> > int main(void) {
>> >         int x= 1;
>> >         somefunc( (x++, somefunc(x)) );
>> >         return 0;
>> > }
> 
> Here is no comma operator in sight. The comma here is only a parameter
> separator.

Look again -- there are no parameter separators here, somefunc only
takes one argument.  The argument to the outer call to somefunc is a
parenthesized expression containing a comma operator.

-Larry Jones

Whatever it is, it's driving me crazy! -- Calvin

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy