title: Unsigned char array casting to long long
body: <p>I'm not sure if this is correct, I have tested it and seems that some bytes are off...
  Basically, I have the following:</p>
  
  <pre><code>unsigned char szBuffer[1024] = {0};
  long long nValue = 1334553536;
  memcpy(szBuffer, (char*)&amp;nValue, sizeof(long long));
  
  //
  
  long long nNewValue = reinterpret_cast&lt;long long&gt;(szBuffer);
  printf(nNewValue); //prints out a smaller number than previously stated
  </code></pre>
  
  <p>Would anyone mind pointing out where I went wrong? Thank you.</p>