Order of evaluation of arguments in function calling?

前端 未结 6 1476
感情败类
感情败类 2020-12-10 14:29

I am studying about undefined behavior in C and I came to a statement that states that

there is no particular order of evaluation of function argume

6条回答
  •  无人及你
    2020-12-10 15:18

    so finally i found it...yeah. it is because the arguments are passed after they are evaluated.So passing arguments is a completely different story from the evaluation.Compiler of c as it is traditionally build to maximize the speed and optimization can evaluate the expression in any way.
    so the both argument passing and evaluation are different stories altogether.

提交回复
热议问题