C Programming Operators

Last modified by Microchip on 2023/11/09 09:06

Arithmetic Expression
An arithmetic expression is an expression that contains one or more operands and arithmetic operators.

1. Operands may be variables, constants, or functions that return a value

  • A microcontroller register is usually treated as a variable

2. There are nine arithmetic operators that may be used

  • Binary Operators: +, -, *, /, and %
  • Unary Operators: +, -, ++, and —