Bitwise Operations

Computer Awareness

0/3
0
0
Save Progress
Show Timer
Qn #1910
To change upper case to the lower case letter in ASCII, correct mask and operation should be:
Qn #972
The logic XOR operation of (4AC0)16 and (B53F)16 results
Qn #410
Given an unsigned 32-bit integer $x$, which of the following C/C++ expressions correctly toggles $m$ bits starting from position $p$ (with the least significant bit at position $0$)?

Assume: x is the input integer; p is the starting position of the bit range (0-based, LSB at position 0); m is the number of bits to toggle; and No overflow or invalid input conditions occur.

Which of the following correctly toggles $m$ bits of $x$ starting from position $p$?
    Bitwise Operations Practice Questions | Group Studies Library | Tancet Group Studies