Archived

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

wtf? unary operator?

This topic is 5239 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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