The Gateway to Computer Science Excellence
+1 vote
Which operator has higher priority between *and /  in any expression how to evaluate them
in Programming by Loyal (5.3k points)
edited by | 63 views

3 Answers

+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.

by Junior (691 points)
+1 vote

they have same priority ... evaluate left to right or right to left according to associativity... refer:

by Loyal (5.7k points)
0 votes
  • * and / both have same priority . 
  • Evalutation is left to right


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

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

by Boss (36.5k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,258 answers
104,736 users