← Cisco questions

Set a Specific Bit in a Number

Filed under Cisco · Also reported at NXP Semiconductors

Given an integer, set a specific bit (make it 1) at a given 0-indexed position and return the updated integer.

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 Cisco questions

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