C order of operations -- foo() + bar() -- must foo be called before bar?

c

Solution

No, there's no sequence point with `+`. There's actually a quote on the Wikipedia page about it that answers your question:

Consider two functions f() and g(). In C and C++, the + operator is not associated with a sequence point, and therefore in the expression f()+g() it is possible that either f() or g() will be executed first.

http://en.wikipedia.org/wiki/Sequence_points

Problem

In the following code: ``` int foo(); int bar(); int i; i = foo() + bar(); ``` Is it guaranteed by the C standard that `foo` is called before `bar` is called?

Original source