Beware of Sequence Points
Consider the following C++ code: void foo(int a, int b, int c) { std::cout << a << ‘ ‘ << b << ‘ ‘ << c << std::endl; } int main(int argc, char* argv[]) { int value = 1; foo(value++, value++, value++); return 0; } That looks pretty straight-forward: there is a function that takes … Read more