Qualcomm Interview Question: 16 bit number: how to change ... | Glassdoor

Interview Question

Engineer - QCS Server Web Applications Development Interview San Diego, CA

16 bit number: how to change the bits 0 with 1, 2 with

  3 etc..
Answer

Interview Answer

1 Answer

1

num && 101010101010101= first byte ; num && 0101010101010101 =sec byte, then first shift right, sec shift left and OR operand ” || “ for both..

Interview Candidate on Jan 26, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.