title: Problems with simple use of printf and scanf of double numbers in C
body: <p>I've made extremely easy program:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      double x;
      printf("Write your number \n");
      scanf ("%f", &amp;x);
      printf("You've written %f \n", x);
  
      return 0;
  }
  </code></pre>
  
  <p>And as a result strange number appears (no matter what x I give):
  "You've written <code>83096261053132580000000000000000000000000000000000000000000</code>"</p>
  
  <p>What's wrong with this? This program works fine when I change all numbers into an 'int' type.</p>