title: Initializing an array of doubles in C
body: <p>If I have an array of doubles, such as <code>static double arr[10];</code> and I'd like to initialize all of the values in the array to <code>0</code>, I do:</p>
  
  <pre><code>1 for (int i = 0; i &lt; 10; i++)
  2    arr[i] = 0;
  </code></pre>
  
  <p><strong>My question:</strong></p>
  
  <p>Is line 2 correct, or do I need to initialize to <code>0.0</code>? What's the difference?</p>