N
n.torrey.pines
It's my understanding that the standard guarantees that h() returns 10
here because of the "sequence points". Is this right?
int f(int& i) { i += 1; return 1; }
int g(int& i) { i += 2; return 2; }
int h() {
int x = 0;
int y = f(x) + g(x) + g(x);
return x+y;
}
here because of the "sequence points". Is this right?
int f(int& i) { i += 1; return 1; }
int g(int& i) { i += 2; return 2; }
int h() {
int x = 0;
int y = f(x) + g(x) + g(x);
return x+y;
}