Which one of the following has the same precedence level?

Questions & AnswersCategory: Programming LanguageWhich one of the following has the same precedence level?
Geek Boy Staff asked 2 years ago

Which one of the following has the same precedence level?
a. Addition and Subtraction
b. Multiplication
Division and Addition
c. Multiplication
Division
Addition and Subtraction
d. Addition and Multiplication

1 Answers
Geek Boy Staff answered 2 years ago

a. Addition and Subtraction
Explanation: “Addition and Subtraction” are at the same precedence level. Similarly, “Multiplication and Division” are at the same precedence level. However, Multiplication and Division operators are at a higher precedence level than Addition and Subtraction operators.