title: Which is faster/preferred: memset or for loop to zero out an array of doubles?
body: <pre><code>double d[10];
  int length = 10;
  
  memset(d, length * sizeof(double), 0);
  
  //or
  
  for (int i = length; i--;)
    d[i] = 0.0;
  </code></pre>