Operatoren

betrifft: Mathematik,

betrifft: C-Programmierung

OperatorOperator_(mathematics) 
Einstellige VerknüpfungUnary operation 1 Operand
Zweistellige VerknüpfungBinary_operation2 Operanden

Die Argumente, auf die man einen Operator anwendet, heißen Operanden.

Operatoren haben eine Priorität:

Liste_der_Operatoren_nach_Priorität Populäres Beispiel: Punkt vor Strich

Beispiele:

hier leicht zu testen:

https://www.onlinegdb.com/online_c_compiler

a = 4 + 5Binary Operator with Constant & Constant_J15X86Qu
a = b + cBinary Operator with Variable & VariableR_2pn4hMp
a = 4 + 5 * 2Punkt vor StrichIK1k10ebE
a = (4 + 5) * 2KlammernLVBn_m8qA
a++Unary Inkrement Link9MyNxQeTr
a += 2Kombinierte Zuweisungen Link-4nHgpkxH
a == bGleichheitKURn4fl_M
a && bBoolsches und in Cb_kcGGx2a
 klappt nicht, "and" ist nicht definiert in C0D7_vh5dL
a and bBoolsches Und (nur C++)1bcsNiQ_5
   
   

https://www.xplore-dna.net/course/view.php?id=15

https://www.xplore-dna.net/mod/page/view.php?id=155

https://www.xplore-dna.net/mod/page/view.php?id=153