Computer Science, asked by ruthnagesh, 11 months ago


What are precedence and associativity? plz ​

Answers

Answered by sarah92
1

Operators Associativity is used when two operators of same precedence appear in an expression. Associativity can be either Left to Right or Right to Left. For example: '*' and '/' have same precedence and their associativity is Left to Right, so the expression “100 / 10 * 10” is treated as “(100 / 10) * 10”.

Answered by shambhavi9175
3

Answer:

  • Precedence:the condition of being considered more important than someone or something else; priority in importance, order, or rank."his desire for power soon took precedence over any other consideration.
  • Associativity:associative or connective manner. When you brainstorm, you think associatively, letting one idea lead to another or exploring the connections among ideas.

Similar questions