prev up next

Previous: Codierung Up: Ganze Zahlen (byte, short, int, long) Next: Konstantenbezeichner

Operatoren

+ : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Addition
- : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Subtraktion
* : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Multiplikation
/ : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl ganzzahlige Division
% : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Modulo = Rest der Division
& : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl bitweise Und-Verknüpfung
| : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl bitweise Oder-Verknüpfung
^ : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl bitweise XOR-Verknüpfung
« : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Linksshift
» : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Vorzeichen erhaltender Rechtsshift
»> : Ganzzahl $\times$ Ganzzahl $\rightarrow$ Ganzzahl Vorzeichen ignorierender Rechtsshift
~ : Ganzzahl $\rightarrow$ Ganzzahl Bitweise Negation
- : Ganzzahl $\rightarrow$ Ganzzahl Vorzeichenumkehr
++ : Ganzzahl $\rightarrow$ Ganzzahl Inkrement
-- : Ganzzahl $\rightarrow$ Ganzzahl Dekrement


prev up next
Previous: Codierung Up: Ganze Zahlen (byte, short, int, long) Next: Konstantenbezeichner