title: C++ change value in const char
body: <p>I have a const char</p>
  
  <pre><code>const char example[] = "\x4D\x5A\xE8\x00\x00\x00\x00\x5B\x52\x45\x55\x89\xE5\x81\xC3";
  </code></pre>
  
  <p>and </p>
  
  <pre><code>DWORD* example2 = "\xAA\xBB\xCC\xDD";
  </code></pre>
  
  <p>and i want to change the last 4 bytes of example1 with those on example2 
  what can I do in C++?</p>
  
  <p>i have tried <code>memcpy</code> , <code>strcpy</code> and <code>strcpy_s</code> with no luck</p>