garbage value is obtained
<p>this is a sample of my code. i am getting the value for maximum height. but my minimum height is a garbage value. what am i doing wrong</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;cstdlib&gt;
#include &lt;string&gt;
#include &lt;sstream&gt;
using namespace std;

#define MAX 20

struct DATA
{
   int id;
   string name;
   float height;
}numarray[MAX];

int main()
{
    int num = 0;
    numarray[num].height = fstr3;// contains float values from a file

    float minimum, maximum;
    minimum = numarray[0].height;
    maximum = numarray[0].height;
    for(int i = 0; i &lt; MAX; i++)
    {
        {
            if(numarray[i].height &lt; minimum)
            {
                minimum = numarray[i].height;
            }
            else if(numarray[i].height &gt; maximum)
            {
                maximum = numarray[i].height;
            }
        }
        cout&lt;&lt; minimum&lt;&lt; "    " &lt;&lt; maximum&lt;&lt; endl;
        return 0;
    }
}
</code></pre>
