JobsJob TrackerJob alerts

NXP ยท 9 questions

All 9Coding 7Low-Level Design 2
  • Implement atoi function in C with corner casesCoding
  • Create a linked list storing ages for 10 peopleCoding
  • Insert a new node in a Binary Search TreeCoding
  • Merge two sorted linked lists in-placeCoding
  • Print Hello World without a semicolon in C/C++Coding
  • Check if an integer is a power of 2 using bitwise operatorsCoding
  • Construct a data structure to represent a chessboard and piecesLow-Level Design
  • Check if a number is a power of 2Coding
  • Represent a chessboard and pieces using data structuresLow-Level Design
โ† NXP questions
  1. Interview questions
  2. NXP
  3. Check if an integer is a power of 2 using bitwise operators
Coding

Check if an integer is a power of 2 using bitwise operators

Filed under NXP

The question

Given an integer, write a C function using bitwise operators to determine whether the number is a power of 2.

No write-up yet. Related questions below have one.

Related NXP questions

  • Implement atoi function in C with corner cases
  • Create a linked list storing ages for 10 people
  • Insert a new node in a Binary Search Tree
  • Print Hello World without a semicolon in C/C++
โ† Print Hello World without a semicolon in C/C++Construct a data structure to represent a chessboard and pieces โ†’

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