HPlogo HP C/HP-UX Reference Manual: Version A.05.55.02 > Chapter 5 Expressions and Operators

Operator Quick Reference

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Table 5-15 C Operators

Symbol

Meaning

!

logical negation

!=inequality
%remainder
&AND (bitwise) and address-of
&&AND (logical)
()cast and function call
*multiplication and indirection
+addition and unary plus
++increment, prefix or postfix
,comma
-subtraction and unary minus
--decrement, prefix or postfix
->structure/union pointer (arrow)
.structure/union member (dot)
/division
<less-than
<<left-shift
<=less-than-or-equal-to
=assignment
==equality
>greater-than
>=greater-than-or-equal-to
>>right shift
?:conditional
[ ]subscript
^OR (bitwise exclusive)
|OR (bitwise inclusive)
||OR (logical)
~complement
op=assignment, compound
sizeofcompute object size at translation-time

 

© Hewlett-Packard Development Company, L.P.