title: How do I divide 8 byte integer to four 2 bytes Hexadecimal in C?
body: <p>I've got school task but IDK How to design the code at all...</p>
  <p>The function that it need to do is,</p>
  <ol>
  <li><p>input 8 byte integer (I think it has to be unsigned long long type, cause input number has to be 0 or more)</p>
  </li>
  <li><p>divide input number to four 2 bytes and save it each variable.
  &lt;&lt;for example, input number is 18446744073709551615
  then, it will be 1111111111111111111111111111111111111111111111111111111111111111 in binary.
  (it doesn't have to convert to binary, just show you how to divide)
  divide like this 1111111111111111 / 1111111111111111 / 1111111111111111 / 1111111111111111 in four part&gt;&gt;</p>
  </li>
  <li><p>and make each part to hexadecimal
  &lt;like this, 1111111111111111 / 1111111111111111 / 1111111111111111 / 1111111111111111
  -&gt; ffff / ffff / ffff / ffff&gt;</p>
  </li>
  <li><p>finally, make ffff / ffff / ffff / ffff to decimal number 65535 / 65535 / 65535 / 65535</p>
  </li>
  </ol>
  <p>Sorry, for my bad English but I need your help so bad.... ;(
  My level is quite low so when you explain I need some example codes to see and understand.</p>
  <p>Thank you for reading my question!</p>