JobsJob TrackerJob alerts

NXP Semiconductors · 11 questions

All 11Coding 8
  • OS Concepts
  • Design atoi and Linked ListCoding
  • LL and Array ManipulationCoding
  • Architecture and OS Concepts
  • Sort Array of 0s and 1sCoding
  • Implement strcmp using char pointersCoding
  • Swap First and Last Byte of a NumberCoding
  • Set a specific bit in a numberCoding
  • Copy data between overlapping memory blocksCoding
  • Java vs Python
  • Set ith bit and Swap numbersCoding
← NXP Semiconductors questions
  1. Interview questions
  2. NXP Semiconductors
  3. Set ith bit and Swap numbers
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

  • Design atoi and Linked List
  • LL and Array Manipulation
  • Implement strcmp using char pointers
  • Swap First and Last Byte of a Number
  • Copy data between overlapping memory blocks
← Java vs Python

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