title: Use new operator to initialise an array
body: <p>I want to initialise an array in the format that uses commas to separate the elements surrounded in curly braces e.g:</p>
  
  <pre><code>int array[10]={1,2,3,4,5,6,7,8,9,10};
  </code></pre>
  
  <p>However, I need to use the new operator to allocate the memory e.g:</p>
  
  <pre><code>int *array = new int[10];
  </code></pre>
  
  <p>Is there a way to combine theses methods so that I can allocate the memory using the new operator and initialise the array with the curly braces ?</p>