CSC 161 Schedule Readings Labs & Projects Homework Deadlines Resources

Bitwise Operations and Unions

Now that we know how numeric data is represented as a sequence of bits, we will find it useful to manipulate these bits in several different ways; several bitwise operations help us in this regard. As in Scheme, sometimes we need a modest amount of flexibility with respect to the data type used in particular circumstances; the union type accomplishes this. You will learn about both in the following textbook readings: