Skip to content

Latest commit

 

History

History

0x14-bit_manipulation

FILE 0-binary_to_uint.c is a function that converts a binary number to an unsigned int.

FILE 1-print_binary.c is a function that prints the binary representation of a number.

FILE 2-get_bit.c is a function that returns the value of a bit at a given index.

FILE 3-set_bit.c is a function that sets the value of a bit to 1 at a given index.

FILE 4-clear_bit.c is a function that sets the value of a bit to 0 at a given index.

FILE 5-flip_bits.c is a function that returns the number of bits you would need to flip to get from one number to another.