Skip to content

Latest commit

 

History

History

0x14-bit_manipulation

0x14. C - Bit manipulation

Description

This project is about how to mamipulate bits and use bitwise operators.

Files

Mandatory Tasks

File Description
0-binary_to_uint.c Function that converts a binary number to an unsigned int
1-print_binary.c Function that prints the binary representation of a number.
2-get_bit.c Function that returns the value of a bit at a given index.
3-set_bit.c Function that sets the value of a bit to 1 at a given index.
4-clear_bit.c Function that sets the value of a bit to 0 at a given index.
5-flip_bits.c Function that returns the number of bits you would need to flip to get from one number to another.

Advanced Tasks

File Description
100-get_endianness.c function that reverses a listint_t linked list.