title: C: invalid operands to binary > (have ‘float’ and ‘float (*)(float **, long int, long int, short int *)’)
body: <p>I wrote a very simple code to find max in an array. I cannot figure out what's wrong here...</p>
  
  <pre><code>float maxValue(float **ArrayIn, long length, long width, short* result_coor){
      int i,j;
      float maxvalue = ArrayIn[0][0];
      for(i=0;i&lt;length;i++){
          for(j=0;j&lt;width;j++){
              if((ArrayIn[i][j]&gt;maxValue)==1){
                  maxValue = ArrayIn[i][j];
                  result_coor[0] = i;
                  result_coor[1] = j;
              }
          }
      }
      return maxvalue;
  }
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <pre><code>array_processing.c: In function ‘maxValue’:
  array_processing.c:9:20: error: invalid operands to binary &gt; (have ‘float’ and ‘float
  (*)(float **, long int,  long int,  short int *)’)
  array_processing.c:10:13: error: lvalue required as left operand of assignment
  make: *** [array_processing.o] Error 1
  </code></pre>