| Liste des Groupes | Revenir à cl c |
On 31/05/2026 12:10, Bart wrote:...On 31/05/2026 10:49, David Brown wrote:On 31/05/2026 10:12, Richard Harnden wrote:On 31/05/2026 00:43, Keith Thompson wrote:
But you might consider "(a + b) + c" to be "parsed differently" than "a
+ (b + c)", because of how a particular compiler implements its parser.
It's possible that this results in different code for a particular
compiler, but there is no difference in the meaning for the C language.
Do you have
an example where they make no difference but people might think they do?
>
People might think they affect the order of evaluation, such as when you
have function calls :
u = foo(x) + (foo(y) + foo(z));
Some people might think the use of parentheses means that "foo(y)" and
"foo(z)" are called before "foo(x)", when the order of all these calls
(and the additions) is unspecified. (Again, a given compiler might be
influenced by the parentheses, but the language does not require it.
Les messages affichés proviennent d'usenet.