Samsung Electronics Interview Question: find out if the nth bit of a ... | Glassdoor

Interview Question

Senior Software Engineer Interview Bengaluru (India)

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

Answer

Interview Answer

1 Answer

0

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.