From 67e8e3cce8465c1bd90809675d8790caf495c6d6 Mon Sep 17 00:00:00 2001 From: Reuben Date: Tue, 16 Jun 2009 09:50:14 -0700 Subject: [PATCH] --- ...7_Glossary_and_Tables_for_all_Volumes.mdwn | 67 ++++++++++++++++++- 1 file changed, 65 insertions(+), 2 deletions(-) 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 -- 2.41.0