Cold Help System: Programming: ColdC Reference Manual: Language Structure: Expressions: Operators


Operators are tokens used to perform simple operations on expression values, such as adding two values together. ColdC provides a variety of operators to perform arithmetic and logical operations on data. Most of these operators fall into two categories: unary operators and binary operators.

Unary operators act on a single expression value. In ColdC, all unary operators are single characters which precede expressions. For example, !str is the logical negation of the variable str.

Binary operators act on two expression values. For example, a + b is the sum of the variables a and b.

Some operators are neither unary nor binary. More information on these operators can be found in each sub section:



Data | Operators | Variable Expression | Function Call Expression | Method Call Expression | Error Handling Expression | Looping Expressions


the Cold Dark