CodingReported in a candidate post, Mar 2023
Set ith bit and Swap numbers
Filed under NXP Semiconductors
The question
Write code to set the ith bit of a number and swap two numbers using bitwise operators.
No write-up yet. Related questions below have one.
Related NXP Semiconductors questions
Collected from public candidate posts and coding forums. Updated Nov 2026.