从左到右评估顺序的语言中的序列点?

当评估顺序被指定为“从左到右”而语言是(伪)C样时,它们是以下示例中的序列点?
int x = 1;
int z = x-- + x; // z = 1 + 0 or z = 1 + 1?
my_func(x++); // x incremented before or after my_func execution?
my_func(x++ + --x); // combining those above
    
已邀请:
序列点是语言标准定义为序列点的序列。我即将给出的答案适用于C,但另一种“C样”语言可能很好地定义了不同的序列点,因此对这些问题有不同的答案。
int z = x-- + x; // z = 1 + 0 or z = 1 + 1?
由于
+
不是C中的序列点,因此上述语句的结果是未定义的。
my_func(x++); // x incremented before or after my_func execution?
x
my_func
运行之前递增,但是使用旧值
x
作为参数调用
my_func
my_func(x++ + --x); // combining those above
未定义的原因与第一个原因相同。     

要回复问题请先登录注册