title: int to unsigned char* and vice versa
body: <p>I am new to C/C++. After a long research, I need your help for this. I just want to store a number in <code>unsigned char*</code> and then bring the number back.</p>
  
  <pre><code>int nu = 50;
  unsigned char byteArray[sizeof(int)];
  memcpy(byteArray, &amp;nu, sizeof(int));
  
  int newNu = reinterpret_cast&lt;int&gt;(byteArray);
  </code></pre>
  
  <p>Im expecting the newNu will be 50, instead, it's not. Could anybody show me where am I wrong?</p>
  
  <p>For the <code>int</code>-><code>unsign char*</code> I think I was correct, but how to reverse the progress? is it the right way? btw, I compiled this on <code>Visual Studio</code></p>