C Bit Operations Questions and Answers

Bitwise shift operators - The bitwise operators are used for shifting the bits of the first operand left or right. The number of shifts is specified by the second operator...
Packing of data in a structured format is allowed by using bit fields. When the memory is a premium, bit fields are extremely useful. For example: