wtf? unary operator?

Started by
1 comment, last by White Crow 20 years, 8 months ago
Hi I have been reading in a book that the precedence of the binary operators + and - are lower then the unary operators + and -. What are unary operators? I''ve searched on google but could not find any good explainations. Whitecrow
~~~~~~I'll make you an offer you can't refuse...
Advertisement
Binary operators are operators with two operands, like 'a+b', where + is the binary operator. Unary operators are operators with only one operand, like '-a', or 'b++'.

[edited by - Brother Bob on August 13, 2003 12:07:16 PM]
Thanks for replying THAT fast!
~~~~~~I'll make you an offer you can't refuse...

This topic is closed to new replies.

Advertisement