Hexadecimal to Binary in C

Hexadecimal to Binary in C

Hexadecimal Numbers

Hexadecimal Numbers group binary numbers into sets of four allowing for the conversion of 16 different binary digits

The one main disadvantage of binary numbers is that the binary string equivalent of a large decimal base-10 number can be quite long.

When working with large digital systems, such as computers, it is common to find binary numbers consisting of 8, 16 and even 32 digits which makes it difficult to both read or write without producing errors especially when working with lots of 16 or 32-bit binary numbers.

One common way of overcoming this problem is to arrange the binary numbers into groups or sets of four bits (4-bits). These groups of 4-bits uses another type of numbering system also commonly used in computer and digital systems called Hexadecimal Numbers.