← Microsoft questions

Clear a bit at a given position in a number

Filed under Microsoft

Implement a function to clear the bit at a specified position 'pos' (0-indexed) of a given integer 'num'. Clearing a bit means setting it to 0 regardless of its current state.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.