C - Operators and Expressions
C - Operators and Expressions
25. The bitwise OR is used to
- set the desired bits to 1
- multiply numbers
- divide numbers
- set the desired bits to 0
26. Tthe bitwise XOR is used to
- complement the desired bits
- multiply numbers
- divide numbers
- set the desired bits to 0
27. Logical right shift results in
- maintaining the leftmost bit value
- zero is shifted to the leftmost bit position
- one is shifted to the rightmost bit value
- zero is shifted to the rightmost position
28. Arithmetic right shift results in
- zero is shifted to the leftmost bit position
- one is shifted to the rightmost bit value
- maintains the leftmost bit value
- zero is shifted to the rightmost bit position