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

Re: Implementation-defined behaviour

Subject: Re: Implementation-defined behaviour
From: Philip Potter
Date: Fri, 28 Mar 2008 09:17:56 +0000
Newsgroups: comp.lang.c


Ioannis Vranos wrote:
So, printf("%d "%d\n", x++, x++); invokes implementation-defined
behaviour, while printf("%d\n", x++); doesn't invoke
implementation-defined behaviour?

Aside from the fact that this won't compile (you have one too many " characters), this is almost exactly the same question as FAQ 3.2. The problem is not the individual 'x++' expressions, but the way they interact with each other.

Philip

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