Skip to content

Latest commit

 

History

History

0x13-bit_manipulation

0x13. C - Bit manipulation

Description

What you should learn from this project:

  • Look for the right source of information without too much help
  • How to manipulate bits and use bitwise operators

  • Write a function that converts a binary number to an unsigned int.
  • Write a function that prints the binary representation of a number.
  • Write a function that returns the value of a bit at a given index.
  • Write a function that sets the value of a bit to 1 at a given index.
  • Write a function that sets the value of a bit to 0 at a given index.
  • Write a function that returns the number of bits you would need to flip to get from one number to another.

Author