title: Error: "expected '(' before string constant"
body: <p>Working on computing the geometric mean of values in an array</p>
  
  <p>The function should compute the geo mean correctly, but i'm getting a weird error message</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdint.h&gt;
  #include &lt;math.h&gt;
  
  
  extern "C"
  
  double geomean(double myarray[], int count)      ////error here, expected '(' before string constant
  {
  double geomean = 1;
  double root = (1/(double)count);    
  int i;
  for(i = 0; i &lt; count; i++)
      {
          geomean = geomean * myarray[i];
      }
  geomean = pow(geomean, root);
  return geomean;
  }
  </code></pre>