If we have *, /, ( ), % operators then which of these have the highest precedence?
Answers
Answered by
1
Order of precedence:-
() is solved first
/,%,* are solved from right to left, i.e., in the expression 7/6*4%3, we will solve / first, then * and then %. But in 4*6%8/2, we solve * first, then % and then /
() is solved first
/,%,* are solved from right to left, i.e., in the expression 7/6*4%3, we will solve / first, then * and then %. But in 4*6%8/2, we solve * first, then % and then /
Similar questions