title: Error: invalid operands of types 'int' and 'float*' to binary operator '/'
body: <pre><code>Error: invalid operands of types 'int' and 'float*' to binary'operator/'
  int *average = new int((num) / data);
  </code></pre>
  
  <p>showing up for this line of code.
  Why so?</p>
  
  <pre><code>float *data;
  int num;
  int mode;
  double average, median;
  
  cout &lt;&lt; "How many students were surveyed?  ";
  cin &gt;&gt; num;
  data = makeArray(num);
  
  float getAverage(float *data, int num)
  {
      int *average = new int((data) / num);
      return *average;
  }
  </code></pre>