Is there any difference between the Java and C++ operators?

前端 未结 6 1024
后悔当初
后悔当初 2021-01-12 00:16

If you take Java\'s primitive numeric types, plus boolean, and compare it to C++ equivalent types, is there any difference what concerns the operators, like precedence rules

6条回答
  •  误落风尘
    2021-01-12 00:29

    I believe that operator precedence is consistent between C++ and Java and provided the expression is deterministic then it should evaluate the same way.

提交回复
热议问题