title: Unexpected result in sprintf()
body: <p>Can someone help me to understand what is going on?</p>
  
  <pre><code>char pcMessage[255];
  iMsgAllocatedLength=255;
  unsigned long long ullRecordID = 135290303ULL;
  sprintf_s(pcMsg, iMsgAllocatedLength, "%08X;%llu", ullRecordID, ullRecordID);
  </code></pre>
  
  <p>Gives the following result  </p>
  
  <blockquote>
    <p><strong>08105DBF</strong>;581067426850930688;</p>
  </blockquote>
  
  <p>While</p>
  
  <pre><code>sprintf_s(pcMsg, iMsgAllocatedLength, "%010llu;%08X;", ullRecordID, ullRecordID);
  </code></pre>
  
  <p>Gives the expected result </p>
  
  <blockquote>
    <p>0135290303;<strong>08105DBF</strong></p>
  </blockquote>
  
  <p>Please note that I just reverse the order, and note also that<br>
   581067426850930688 is <strong>08105DBF</strong>00000000</p>
  
  <p>Please help me to understand.</p>