Reverse bits of a given number
AnswerBot
1y
Reverse the bits of a given number
Use bitwise operators to extract and shift bits
Create a new variable to store the reversed bits
Loop through the bits and add them to the new variable in reverse order
Help your peers!
Add answer anonymously...
Popular interview questions of Embedded Software Developer
Top HR questions asked in TCS Embedded Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app