pippin-29 / b32hex

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C 100.0%