What is the " ^ " function?

Discussion in 'C++' started by boki, Sep 8, 2004.

  1. boki

    boki Guest

    Dear All,
    Could you please tell me what is the " ^ " function for ?
    0 ^ 3 = 3
    1 ^ 3 = 2
    ..
    ..
    ..
    but
    4 ^ 3 = 7


    Best regards,
    Boki.
    boki, Sep 8, 2004
    #1
    1. Advertising

  2. boki

    Unforgiven Guest

    "boki" <> wrote in message
    news:...
    > Dear All,
    > Could you please tell me what is the " ^ " function for ?
    > 0 ^ 3 = 3
    > 1 ^ 3 = 2
    > .
    > .
    > .
    > but
    > 4 ^ 3 = 7


    Bitwise exclusive or.

    --
    Unforgiven
    Unforgiven, Sep 8, 2004
    #2
    1. Advertising

  3. boki

    B.R. Guest

    B.R., Sep 8, 2004
    #3
  4. boki

    boki Guest

    "B.R." <> wrote in message news:<chmnsv$avh$>...
    > boki wrote:
    >
    > > Dear All,
    > > Could you please tell me what is the " ^ " function for ?
    > > 0 ^ 3 = 3
    > > 1 ^ 3 = 2
    > > .
    > > .
    > > .
    > > but
    > > 4 ^ 3 = 7
    > >
    > >
    > > Best regards,
    > > Boki.

    > google: c++ operators ^
    > first hit:
    > http://msdn.microsoft.com/library/en-us/vccelng/htm/operator.asp
    >
    > link: Bitwise-exclusive-OR: ^
    > http://msdn.microsoft.com/library/en-us/vccelng/htm/operator_22.asp


    Thank you two very much.

    Best regards,
    Boki.
    boki, Sep 9, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. James Vanns
    Replies:
    7
    Views:
    7,011
    Evan Carew
    Jan 21, 2004
  2. komal
    Replies:
    6
    Views:
    1,406
    msalters
    Jan 25, 2005
  3. Replies:
    2
    Views:
    895
    Bengt Richter
    Aug 1, 2005
  4. Giannis Papadopoulos

    Function pointer to void function and int function

    Giannis Papadopoulos, Sep 5, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,216
    Barry Schwarz
    Sep 5, 2005
  5. weafon
    Replies:
    1
    Views:
    290
    Diez B. Roggisch
    Jul 14, 2009
Loading...

Share This Page