Here we learn the method of converting Decimal number to Binary form.
To do this, we have a few steps:
1. Divide the number by 2. Find the quotient and the reminder.
2. Keep Dividing the subsequent quotients until you find quotient equal 1 and keep note of the remainders.
3. The final quotient ( which is 1) followed by the resultant reminders written in reverse order of appearance, is the final Binary form of the given decimal number.
See Bit Manipulation Interview Preparation Series here:
• Bit Manipulation Interview Series
You could follow us on Facebook and Instagram:
Facebook : / firmwarecode
Instagram : / firmwarecode
#BitManipulation #BitAlgorithms