X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/blobdiff_plain/7c1e277799a94feadc483b8d2a0e4507380bf639..HEAD:/docs/developer/C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn diff --git a/docs/developer/C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn b/docs/developer/C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn index 3e37b943..e1e71f3e 100644 --- a/docs/developer/C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn +++ b/docs/developer/C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn @@ -155,11 +155,74 @@ Operators are symbols that when used, perform an operation on one or more operan - * Operator Symbol Example - * , Comma expr1, expr2 + , Used to separate expressions foo, bar + = Assignment foo = bar + ? : Conditional foo?bar:baz + || Logical OR foo || bar + + && Logical AND foo && bar + + | Bitwise OR foo | bar + + ^ Bitwise Exclusive-OR (XOR) foo ^ bar + + & Bitwise AND foo & bar + + == Equality foo == bar + + != Inequality foo != bar + + <= Less than or Equals foo <= bar + + >= Greater than or Equals foo >= bar + + < Less than foo < bar + + > Greater than foo > bar + + << Left shift foo << bar + + >> Right shift foo >> bar + + + Addition or no-op foo + bar + or + +foo + + - Subtraction or negation foo - bar + or + -foo + + * Multiplication or de-assignment foo * bar + or + *foo + + / Division foo/bar + + % Modulus foo%bar + + ~ Bitwise compliment ~foo + + ! Logical compliment !foo + + ++ pre- or post- decrement ++foo or foo++ + + -- pre- or post- decrement --foo or foo-- + + () Type casting or precedence (int) foo or (char) foo, etc + or + (2 + 3) * 8, etc + + -> Structure de-referencing foo -> bar + + . Structure reference foo.bar + + [] Array reference foo[bar] + + + ### P