in Programming in C edited by
413 views
1 vote
1 vote
Which operator has higher priority between *and /  in any expression how to evaluate them
in Programming in C edited by
413 views

3 Answers

2 votes
2 votes

see, both having the same priority, you have to evaluate start always from left to right, here I have  taken an

infix to postfix example to understand it.... see.. hope u can easily understand.

1 vote
1 vote

they have same priority ... evaluate left to right or right to left according to associativity... refer:https://www.geeksforgeeks.org/c-operator-precedence-associativity/

0 votes
0 votes
  • * and / both have same priority . 
  • Evalutation is left to right

Example

a*b/c ----> ab*c/

a/b*c----> ab/c*

Related questions