title: Initialization of array on heap
body: <p>How do i manually initiate values in array on heap?
  If the array is local variable (in stack), it can be done very elegant and easy way, like this:</p>
  
  <pre><code>int myArray[3] = {1,2,3};
  </code></pre>
  
  <p>Unfortunately, following code</p>
  
  <pre><code>int * myArray = new int[3];
  myArray = {1,2,3};
  </code></pre>
  
  <p>outputs an error by compiling</p>
  
  <pre><code>error: expected primary-expression before ‘{’ token
  error: expected `;' before ‘{’ token
  </code></pre>
  
  <p>Do i have to use cycle, or not-so-much-elegant way like this?</p>
  
  <pre><code>myArray[0] = 1;
  myArray[1] = 2;
  myArray[2] = 3;
  </code></pre>