Ad

Chapter - 15: Operations On Bits

Rewrite the following expressions using bitwise compound assignment operators:


Ad
B
Sections
2
Exercises

que: a = a|3
ans: a |= 3

que: a = a & 0x48
ans: a &= 0x48

que: b = b^0x22
ans: b ^= 0x22

que: c = c << 2
ans: c <<= 2

que: d = d >> 4
ans: d >>= 4

Ad

© 2024 Garbage Valuegarbage value logo