title: Why is this double value printed as "-0"?
body: <pre><code>double a = 0;
  double b = -42;
  double result = a * b;
  cout &lt;&lt; result;
  </code></pre>
  
  <p>The result of <code>a * b</code> is <code>-0</code>, but I expected <code>0</code>. Where did I go wrong?</p>