Possible Duplicate:
Print an int in binary representation using C
How would I print the byte representations of a short int, and double in C.
As in lets say I have a function display_shortInt, how would I make it print the byte representation of a short int? I'm new to C, thanks you!