What is the order of precedence of operators in the C p…

The priority of operations in the C language is ranked from high to low as follows:

  1. parentheses symbol ()
  2. Unary operators ++ and — (prefix form)
  3. Unary operators: +, – (unary addition and subtraction)
  4. Typecast operator.
  5. Address-of operator &
  6. dereference operator *
  7. Array index operator []
  8. Member operators of structure/union.
  9. Pointer operator -> for struct/union members.
  10. multiplication operator *, division operator /
  11. Addition symbol +, subtraction symbol –
  12. Shift operators <<, >>
  13. Relational operators <, <=, >, >=
  14. Equality operators “==,” “!=”
  15. bitwise operator &
  16. The exclusive OR operator ^
  17. Bitwise OR operator
  18. Logical operator &&
  19. logical OR operator ||
  20. Ternary operator ? :
  21. Assignment operators include =, +=, -=, *=, /=, %=, <<=, >>=, &=, ^=, and |=.
  22. comma operator
bannerAds