O'Reilly logo

C Primer Plus, Sixth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15. Bit Fiddling

You will learn about the following in this chapter:

Image Operators:

~ & |^

>> <<

&= |= ^= >>= <<=

Image Binary, octal, and hexadecimal number notations (a review)

Image Two C facilities for handling the individual bits in a value: bitwise operators and bit fields

Image Keywords:

_Alignas, _Alignof

With C, you can manipulate the individual bits in a variable. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required