Jun 202011
 

Operators in C

Operators in C and C++: http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

C supports a rich set of operators, which are symbols used within an expression to specify the manipulations to be performed while evaluating that expression. C has operators for:

  • arithmetic (+, -, *, /, %)
  • equality testing (==, !=)
  • order relations (<, <=, >, >=)
  • boolean logic (!, &&, ||)
  • bitwise logic (~, &, |, ^)
  • bitwise shifts (<<, >>)
  • assignment (=, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=)
  • increment and decrement (++, --)
  • reference and dereference (&, *, [ ])