Possible Duplicate:
C printing bits
Lets say I have a uint16_t number something like:
uint16_t myVar = 0x3A44;
and I want to print the binary value if 0x3A44 from the myVar, how could I iteratively access and print each bit?
Treat it as a bit array?