NIMCET 2025 — Computer PYQ
NIMCET | Computer | 2025Given 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)?

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)?
x&~(((1≪m)-1)≪p)