Chapter 32 Bitwise Operations and Enumerated Types
We’ve seen that computers store everything— integers, characters, even floats— as patterns of bits. In this chapter we’ll learn to manipulate those bits directly using C’s bitwise operators, and we’ll also meet enumerated types (
enum), which let us give meaningful names to sets of integer constants. Here’s what we’ll cover:-
Bitwise operators:
~,<<,>>,&,| -
Enumerated types (
enum) -
Combining bitwise operators and enums

