Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C の次のコード スニペットを検討してください。
int v = 10; int z = v; v = v++ + ++v; printf("v = %d\n",v); // gives 23 printf("z = %d\n",z++ + ++z); // gives 22
なぜこれが起こるのですか?
未定義の動作のため、シーケンス ポイントがありません。