New donator - thanks, Michael Roach!
[ikiwiki.git] / docs / developer / C_Development_Under_DragonFly_BSD-Volume_7_Glossary_and_Tables_for_all_Volumes.mdwn
index 2fc6137..e1e71f3 100644 (file)
 
 
 
+#### Comment
+
+
+
+C comments are statements not interpreted by the compiler and are used by the programmer to leave helpful notes on what is happening in the code.  Comments are contained within the /* and */ symbols.
+
+
+
 ### D 
 
 
@@ -143,6 +151,78 @@ Standard C language modifiers include:
 
 
 
+Operators are symbols that when used, perform an operation on one or more operands.  C uses the following operators:
+
+
+
+    ,   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