title: Is 'float a = 3.0;' a correct statement?
body: <p>If I have the following declaration:</p>
  
  <pre><code>float a = 3.0 ;
  </code></pre>
  
  <p>is that an error? I read in a book that <code>3.0</code> is a <code>double</code> value and that I have to specify it as <code>float a = 3.0f</code>. Is it so?</p>