title: Dynamic Arrays and pointers in Delphi
body: <p>How can i rewrite this C++ code in Delphi?</p>
  
  <pre><code>int *intim = new int[imsize];
  unsigned char *grays = new unsigned char[imsize];
  int *intim2 = intim;
  </code></pre>
  
  <p>How can I increment pointer like this:</p>
  
  <pre><code>*(intim++) = x;
  </code></pre>