# Why does this statement evaluate to 176? [closed]

int y = 10;
int z;
z = (++y * (y++ + 5)); // Evaluates to 176


According to me this should evaluate to 180. Please provide an explanation as well which relates to precedence and associativity.

• This seems more appropriate for stackoverflow. Mar 25 '16 at 20:17

z = (++y * (y++ + 5)); // Beginning expression