- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is Evaluation, Precedence and Association in C language?
Expressions are evaluated by the ‘C’ compiler based on precedence and associativity rules.
If an expression contains different priority operators, then the precedence rules are considered.
Here, 10*2 is evaluated first since ‘*’ has more priority than ‘- ‘and ‘=’
If an expression contains same priority, then associativity rules are considered i.e. left right (or right to left).
Advertisements