Archived

This topic is now archived and is closed to further replies.

White Crow

wtf? unary operator?

Recommended Posts

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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites