/b32hex

Sets bits in a 32 bit unsigned integer & converts to hexadecimal format.

Primary LanguageC

b32hex

Sets bits in a 32 bit unsigned integer & converts to hexadecimal format.

Expects No duplicate command line arguments;

Expects positive numbers;

Expects no more than 32 bits to be set;

Expects bit position set < 32;

Compile with gcc b32hex.c -o b32hex

Prints Binary Representation;

Prints Hexadecimal Representation;

Sorts and Prints Input;

Usage: ./b32hex 0 6 2 31