Bitwise Anding

Discussion in 'MCSA' started by RogueIT, Mar 9, 2009.

  1. RogueIT

    RogueIT Guest

    when I am anding... which is correct

    ***********
    0101
    0011
    ------
    0001

    or

    0101
    0011
    ------
    1001
    *********
    Thanks,
    Rogue
    RogueIT, Mar 9, 2009
    #1
    1. Advertising

  2. RogueIT

    John R Guest

    "RogueIT" <> wrote in message
    news:...
    > when I am anding... which is correct
    >
    > ***********
    > 0101
    > 0011
    > ------
    > 0001
    >
    > or
    >
    > 0101
    > 0011
    > ------
    > 1001
    > *********
    > Thanks,
    > Rogue
    >


    AND means that both bits need to be SET for the resultant bit to be set, so
    your first scenario is correct.

    John R
    John R, Mar 9, 2009
    #2
    1. Advertising

  3. RogueIT

    RogueIT Guest

    Thanks John...you can only imagine the difference that 00=1 would make...

    Have a good day

    "John R" wrote:

    >
    > "RogueIT" <> wrote in message
    > news:...
    > > when I am anding... which is correct
    > >
    > > ***********
    > > 0101
    > > 0011
    > > ------
    > > 0001
    > >
    > > or
    > >
    > > 0101
    > > 0011
    > > ------
    > > 1001
    > > *********
    > > Thanks,
    > > Rogue
    > >

    >
    > AND means that both bits need to be SET for the resultant bit to be set, so
    > your first scenario is correct.
    >
    > John R
    >
    >
    RogueIT, Mar 9, 2009
    #3
    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.

Share This Page