Difference between revisions of "Operators"

From Mesham
Jump to navigationJump to search
(Created page with '== Operators == #+ #- #* Multiplication #% Division #<< Bit shift to left #>> Bit shift to right #== Test for equality #!= Test for inverse equality #= Test of equa…')
 
Line 1: Line 1:
 
== Operators ==
 
== Operators ==
#+  
+
#+ Addition
#-
+
#- Subtraction
#*  Multiplication  
+
#<nowiki>*</nowiki> Multiplication  
#% Division  
+
#/ Division  
 +
#++  Pre or post fix addition
 +
#--  Pre or post fix subtraction
 
#<< Bit shift to left  
 
#<< Bit shift to left  
 
#>>  Bit shift to right   
 
#>>  Bit shift to right   
 
#==  Test for equality   
 
#==  Test for equality   
 
#!=  Test for inverse equality  
 
#!=  Test for inverse equality  
#= Test of equality on strings
+
#! Logical negation
 +
#( )  Function call or expression parentheses
 +
#[ ]  Array element access
 +
#.  Member access
 
#< Test lvalue is smaller than rvalue  
 
#< Test lvalue is smaller than rvalue  
 
#>  Test lvalue is greater than rvalue   
 
#>  Test lvalue is greater than rvalue   

Revision as of 16:14, 12 January 2013

Operators

  1. + Addition
  2. - Subtraction
  3. * Multiplication
  4. / Division
  5. ++ Pre or post fix addition
  6. -- Pre or post fix subtraction
  7. << Bit shift to left
  8. >> Bit shift to right
  9. == Test for equality
  10. != Test for inverse equality
  11. ! Logical negation
  12. ( ) Function call or expression parentheses
  13. [ ] Array element access
  14. . Member access
  15. < Test lvalue is smaller than rvalue
  16. > Test lvalue is greater than rvalue
  17. <= Test lvalue is smaller or equal to rvalue
  18. >= Test lvalue is greater or equal to rvalue
  19. || Logical OR
  20. && Logical AND