•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Arithmetic Operators ]

+  Addition             2 + 3 == 5
-  Subtraction          5 - 3 == 2
*  Multiplication       2 * 3 == 6
/  Division             7 / 3 == 2  (remainder is dropped)
%  Modulus (Remainder)  7 % 3 == 1  (a % b) == (a - (a/b)*b)

%   can only be used with int, short & long.
* / can also be used with float & double.
+ - can also be used with char and pointers.

See also Unary Operators + - ++ and --
and Assignment Operators += -= *= /= and %=