title: c printf %lf %d different result
body: <h3>MyCode</h3>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main(){
    printf("result1 : %lf %d\n", (1 - (double)((int)1)), (1 - (double)((int)1)));
    return 1;
  }
  </code></pre>
  
  <h3>Result</h3>
  
  <pre><code>result1 : 0.000000, 1
  </code></pre>
  
  <p>I dont't understand this result.</p>
  
  <h3>I think when printf("%d"), this result must be zero!</h3>