Order of function call

后端 未结 6 1652
执念已碎
执念已碎 2020-12-11 18:06

for the expression

(func1() * func2()) + func3()

will func1() * func2() be evaluated first as it has brackets or can the functions be calle

6条回答
  •  猫巷女王i
    2020-12-11 18:46

    These calls can be made in any order. You want to learn about C++ sequence points C++ sequence points.

提交回复
热议问题