title: returning a float type from function in c
body: <p>I have this simple code:</p>
  
  <pre><code>int main()
  {
      float x = foo();
      printf("returned value: %f", x);
      return 0;
  }
  
  float foo ()
  {
      return 5;
  }
  </code></pre>
  
  <p>when i run the code , the output is: <em>"returned value: -858993472.000000"</em></p>
  
  <p>can somebody please explaing to me why does the returned value isnt 5.000000?</p>