HP C A.06.05 Reference Manual
Chapter 5 83
5 Expressions and Operators
Operators are grouped as follows:
• Arithmetic Operators (+, -, *, /, %)
• Array Subscripting ([ ])
• Assignment Operators (=, +=, -=, *=, /=, %=,<<=, >>=, &=, ^=, |=)
• Bit Operators (<<, >>, &, ^, |, ~)
• Cast Operator
• Comma Operator (,)
• Conditional Expression Operator (?:)
• Function Calls
• Increment and Decrement Operators (++, --)
• Logical Operators (&&, ||, !)
• Pointer Operators (*, ->, &)
• Relational Operators (>, >=, <, ==, !=)
• sizeof Operator
• Structure and Union Members (., ->)
See Also:
• Operator Precedence
• Operator Quick Reference
The different types of expressions are:
• Constant Expressions
• Integral Expressions
• Floating-Point Expressions
• Pointer Expressions
• lvalue Expressions