title: Why does Eclipse fail on this scanf() command when the Command Prompt executes it fine?
body: <p>I'm new to C. Here's my code:</p>
  
  <pre><code>/* Using scanf() */
  #include &lt;stdio.h&gt;
  
  int main(void) {
      int iDec1, iDec2, iDec3;
      printf("Enter three decimals:\n");
      scanf("%d,%d,%d", &amp;iDec1, &amp;iDec2, &amp;iDec3);
      printf("Your decimals are %d, %d and %d.", iDec1, iDec2, iDec3);
      return 0;
  }
  </code></pre>
  
  <p>It works in the Command Prompt, but when I run it through Eclipse it doesn't do anything. After hitting stop, this appears in the Console output:</p>
  
  <blockquote>
    <blockquote>
      <p>Enter three decimals</p>
      
      <p>Your decimals are 3, 2147344384 and 2147344384.</p>
    </blockquote>
  </blockquote>
  
  <p>What the...? How come it works fine outside Eclipse but not inside Eclipse?</p>