Will this code always produce the same result?
return c * (t /= d) * t * t + b;
So, I expect:
return ((c * (t / d) ^ 3) + b);
But I'm not sure if the compiler can interpret it as:
return ((c * t * t * (t / d)) + b)
I searched in the C standard, but could not find the answer, I know there x = x++is undefined, but here I am not sure because of ()around t /= d, which, I think, forces the compiler to compute this operator first.
source
share