title: Finding Max Number in an Array C Programming
body: <p>I am trying to find the max number in an array. I have created a function and I am using the following code:</p>
  
  <pre><code>int maxValue( int myArray [], int size)
  {
      int i, maxValue;
      maxValue=myArray[0];
  
      //find the largest no
      for (i=0;i)
          {
          if (myArray[i]&gt;maxValue)
          maxValue=myArray[i];
          }   
          return maxValue;
  }
  </code></pre>
  
  <p>However I get a syntax error before <code>)</code> token. What am I doing wrong and am I even doing this right? Any help would be greatly appreciated.</p>