title: What is the faster: to create a new array or iterate through existing?
body: <p>I have an array, for example  (in Java)</p>
  
  <pre><code>int[] a = new int[N];
  </code></pre>
  
  <p>I have worked with it and now want to have array with zeros.
  What will take less time: to create a new Array(it will be initialized will zeros) or iterate through existing one and fill it with zeros?</p>
  
  <p>I suppose whatever answer is, it will be the same in C++ ?</p>