Finding max value in an array
<pre><code>int highNum = 0;
int m;
int list[4] = {10, 4, 7, 8};
    for (m = 0 ; m &lt; size ; m++);
    {
        if (list[m] &gt; highNum)
            highNum = list[m];
            cout &lt;&lt; list[m];
    }
cout &lt;&lt; highNum;
</code></pre>

<p>I am trying to find a simple loop to store a max value from an array, and I wrote this thinking it would work, but for some reason at the beginning of the for loop it stores the m variable as 4 and exits the loop.  Can someone help me out?</p>
