EmbLogic's Blog

binary operator

what is difference b/w binary operator and unary operator and plz tell me priority in binary operator?

2 Responses to binary operator

  1. Manoj says:

    Binary : for 2 oprands

    unary : for a single oprand.

    Rest u try urself

  2. Anil says:

    Binary: +,-.*,%,/ etc…
    eg. (a+b),(a-b)(a*b)(a/b) etc….

    unary: ++,–.+=,-=,*= etc…..
    eg. ++a,–a,a++,&a,*a,!a,~a etc…..

Leave a Reply to Manoj Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>