Operators in C and C++: Difference between revisions

Content deleted Content added
left align like other tables
Line 37:
| {{cpp|1=R operator -(K a, S b);}}
|-
| {{rh}} colspan="2" | [[Unary operation|Unary]] plus; ([[Type conversion#Type promotion|integer promotion]])
| style="text-align:center;" | <code>'''+'''a</code>
| {{cpp|1=R K::operator +();}}
| {{cpp|1=R operator +(K a);}}
|-
| {{rh}} colspan="2" | [[Unary operation|Unary]] minus; ([[additive inverse]])
| style="text-align:center;" | <code>'''-'''a</code>
| {{cpp|1=R K::operator -();}}
Line 57:
| {{cpp|1=R operator /(K a, S b);}}
|-
| {{rh}} colspan="2" | [[Modulo operation|Modulo]] (integer remainder)<ref name="modulo" group="lower-alpha" />
| style="text-align:center;" | <code>a '''%''' b</code>
| {{cpp|1=R K::operator %(S b);}}