#include <stdio.h> int main(){ int res = 2; int ans = (res = res * 4) * 6 * (res = res + 3); printf("%d",ans); return 0; }
上面的 C/C+。代码,在 g++/gcc 下输出 121121121,但在 Clang 下输出 888888。为什么?