0
What is precedence and associativity in c language
Please solve my question
1 Resposta
0
3+4*5=23 because * has higher precedence than +. Precedence is which operation has to be evaluated first.
Associativity is for a single operation. 3*4*5. In this case it doesn't matter in which order you evaluate. But if you have 3^4^5 (to the power) it matters a great deal. Times is associative, power is not.