0
do multiplication and division have same operator precedence in c++
if they have same precedence than how this expression is going to be evaluated a= num*x/y; and this one a=x/y*num;
4 ответов
+ 5
incase of multiplication and division they have same precedence but they are evaluated from left to right first
+ 2
iirc when it comes to multiplication and division the expression is evaluated left-to-right
0
test it
cout << a;