title: Fill in the int array from zero to defined number
body: <p>i need to fill in the int[] array in C++ from zero to number defined by variable, but ISO C++ forbids variable length array...
  How to easily fill in the array? Do i need to allocate/free the memory?</p>
  
  <pre><code>int possibilities[SIZE];
  unsigned int i = 0;
  for (i = 0; i &lt; SIZE; i++) {
      possibilities[i] = i;
  }
  </code></pre>
  
  <p>btw. if you would ask - Yes, i need exactly standard int[] arrays, no vectors, no maps etc.</p>