08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Bitwise AND operator in c
1. C
AND operators
.
1. logical AND (&&)
2. bit wise AND (&)
Decision control structure
if condition
logical &&
.
if( percentage >= 60 && percentage < 70)
{
printf("First Class with distinctionn");
}
printf statement
control
if
conditions true
.
.फ
bit wise AND (&)
bits व
expression व
. Bit wise operation returns 1 when both of its operands are 1. ग
wise & operator
truth table...?
Table 1
Table 2
. Interesting
1.
0 (Zero)
2.
1
points
ए
व
.
AND
AND
conclusion
result 0 (Zero)
result
original
.
bit operations
.
.
words bit wise AND
bit
2. 0
1
1
0
1
0
1
1
1
0
0
0
0
1
0
1
0
1
1
0
1
0
1
1
1
0
0
0
0
1
0
1
0
0
0
0
1
0
1
1
1
0
0
0
0
0
0
1
&
Resultant Bit Pattern
operator
. Bit wise operators
ए
values
.
information
ए
.
bit
8 bits
arithmetic operations
Bit wise AND
32 bits
ए byte reserve
.
bit wise operations
masking
ए
flag
.
.
.
graphics
2 words
information
. In 32 bit dWord there are 4
distinct values.
Low byte is for Blue (0 to 7)
The next significant byte is value for Green (8 to 15)
Then a byte for Red (16 to 23)
High byte is for Transparency (24 to 31)
color dWord
AAAA AAAA RRRR RRRR GGGG GGGG BBBB BBBB
32 bit dWord integer
bits zero (0)
?ए
Red byte
.
bit wise &
. So we will be having one variable mask
(AND) operator
o (Zero)
mask
Red color extract
...?
erase
.
3. 0000 0000 1111 1111 0000 0000 0000 0000
direct C
code
.
Hex post
hexadecimal conversion
.
hex code 0X00FF0000
.
mask bit wise AND
dWord
AAAA AAAA RRRR RRRR GGGG GGGG BBBB BBBB
&
0000 0000 1111 1111 0000 0000 0000 0000
-------------------------------------------------------------------------------0000 0000 1111 1111 0000 0000 0000 0000
Red color bits
erase
.
0 (Zero)
.
AND
ए
Bit wise Shift operator
carry over
Happy Coding...!
.
example