Samsung Group

Interview Question

Senior Software Engineer Interview Bangalore (India)

find out if the nth bit of a number is set or not.


Interview Answer

1 Answer


just and it with a number with all 0's and 1 at nth place. if 0 not set if 1 set

Interview Candidate on Aug 4, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.