[ANSYS, Inc. Logo] return to home search
next up previous contents index

A.12.1 Arithmetic Operators

Some common arithmetic operators are listed below.

=  assignment
+  addition
-  subtraction
*  multiplication
/  division
%  modulo reduction
++ increment
-- decrement

Note that multiplication, division, and modulo reduction ( %) operations will be performed before addition and subtraction in any expression. When division is performed on two integers, the result is an integer with the remainder discarded. Modulo reduction is the remainder from integer division. The ++ operator is a shorthand notation for the increment operation.


next up previous contents index Previous: A.12 Common C Operators
Up: A.12 Common C Operators
Next: A.12.2 Logical Operators
Release 12.0 © ANSYS, Inc. 2009-01-14