title: Initializing Arrays in C/C++ With Unknown Size
body: <p>How can I initialize an array in C such as</p>
  
  <pre><code>void initArr(int size)
  {
    ...
  }
  </code></pre>
  
  <p>The C language does not give the option to initialize an array
  if his size is not an constant value, and if I initialize
  it generally (int *arr;) so it gives me error of 'arr' is not
  being initialized.</p>
  
  <p>Similarily, how can I do that when I have an array with dimension
  bigger than one (matrix, for example)?</p>