mikroC - C Compiler for Microchip PIC microcontrollers
Arithmetic Operators
Arithmetic operators are used to perform mathematical computations. They have
numerical operands and return numerical results. Type char technically represents
small integers, so char variables can used as operands in arithmetic operations.
All of arithmetic operators associate from left to right.
Note: Operator
operator. See Pointers for more information.
page
102
Operator
addition
+
subtraction
-
multiplication
*
division
/
returns the remainder of integer division (can-
%
not be used with floating points)
unary plus does not affect the operand
+ (unary)
unary minus changes the sign of operand
- (unary)
increment adds one to the value of the
++
operand
decrement subtracts one from the value of the
--
operand
is context sensitive and can also represent the pointer reference
*
MikroElektronika: Development tools - Books - Compilers
Operation
mikroC
making it simple...
Precedence
12
12
13
13
13
14
14
14
14
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?