title: How to print the byte representations of a short int C object
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1024389/print-an-int-in-binary-representation-using-c">Print an int in binary representation using C</a>  </p>
  </blockquote>
  
  
  
  <p>How would I print the byte representations of a short int, and double in C.</p>
  
  <p>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!</p>