+ Reply to Thread
Results 1 to 2 of 2

Thread: Clear nth bit

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Clear nth bit

    Write code to clear nth bit in an integer.

  2. #2
    rajukonda Guest
    number = number & ~(1 << n); where n starts from 0

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts