Question: what is operator precedence and associativity explain?
Answer: Operator precedence: It dictates the order of evaluation of operators in an expression. Associativity: It defines the order in which operators of the same precedence are evaluated in an expression. ... Operators that appear in the same group have the same precedence.