Home Segments Index Top Previous Next

80: Mainline

So far, you have learned about arithmetic operators, +, -, *, /, and %, the output operator, <<, and the assignment operator, =. In general, an operator is a symbol, or combination of symbols, that is treated by the compiler in a special way.

Most operators are special in that they receive arguments via flanking operands, rather than via the parenthesized argument lists used by ordinary functions. Some operators, such as the new operator, which you learn about in the hardcopy version of this book, and the delete operator, which you learn about in the hardcopy version of this book are special in that they do not evaluate their arguments. Still others, such as the conditional operator, which you learn about in the hardcopy version of this book, are special in that they evaluate some arguments, but not others.