Is there a sequence point between these assignments?

前端 未结 6 1729

Is there a sequence point between the two assignments in the following code:

f(f(x=1,1),x=2);
6条回答
  •  不知归路
    2021-02-13 10:05

    Yes there will be a sequence point due to comma operatror But still result will be undefined as evaluation of function arguments is undefined so can't predict what value this expression will generate........means undefined behaviour

提交回复
热议问题