title: Storing floating point numbers in struct in C
body: <p>I created a struct variable. An example of this is:</p>
  
  <pre><code>    struct numbers
      {
          float start;
          float end;
          int middle;
      }values;
  
      int main()
      {
          scanf("%f %f %d", &amp;values.start, &amp;values.end, &amp;values.middle);
          printf("%f %f %d, &amp;values.start, &amp;values.end, &amp;values.middle);
      } 
  </code></pre>
  
  <p>When I try to read values into these variables through user input, such as "0 5.8 3". When I try to print, it looks like this</p>
  
  <p>0.000000 0.0000000 -26148776 (The last number changes everytime I run the program, and the rest remain as 0)</p>
  
  <p>How can I fix this issue?</p>
  
  <p>Thanks in advance!</p>