title: c# BitConverter.GetBytes operations in C++
body: <p>How can i C# BitConverter.GetBytes() operation in standart C++.</p>
  
  <p>for example;</p>
  
  <pre><code>int k=4;
  byte[] byteK = BitConverter.GetBytes(K);
  </code></pre>
  
  <blockquote>
    <ul>
    <li>
    <ul>
    <li>byte[0] = 0 0 0 0 0 1 0 0</li>
    <li>byte[1] = 0 0 0 0 0 0 0 0</li>
    <li>byte[2] = 0 0 0 0 0 0 0 0</li>
    <li>byte[3] = 0 0 0 0 0 0 0 0</li>
    </ul></li>
    </ul>
  </blockquote>