Questions about this topic? Sign up to ask in the talk tab.

Bitwise math/Operators/AND/example

From NetSec
Revision as of 01:28, 19 July 2012 by GertieUbpgdd (Talk | contribs) (Created page with "<noinclude>{{subpage|Bitwise math}}</noinclude> :''Example: 0x6 AND 0x5 = 0x4'' ::{| class="wikitable" width="40%" style="text-align:center" |- !Operation !Hexadecimal !Binary !...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
back to Bitwise math


Example: 0x6 AND 0x5 = 0x4
Operation Hexadecimal Binary comment


and

6

5

0110

0101

The second and third bits are true.

The second and fourth bits are true.

=
4 0100 The second bit is the only one true in both instances (5 and 6).