0

What is precedence and associativity in c language

Please solve my question

20th Sep 2017, 2:10 PM
Ankit Vishwakarma
Ankit Vishwakarma - avatar
1 Respuesta
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.
20th Sep 2017, 8:14 PM
1of3
1of3 - avatar