title: C: put x86 instructions into array and execute them
body: <p>Is there any way to put processor instructions into array, make its memory segment executable and run it as a simple function:</p>
  
  <pre><code>int main()
  {
      char myarr[13] = {0x90, 0xc3};
      (void (*)()) myfunc = (void (*)()) myarr;
      myfunc();
      return 0;
  }
  </code></pre>