title: change array value in c++
body: <p>I have a 2 dimension array in my cpp program which stores double values across eight columns and three rows.I have a function to determine the smallest value per row.Now i want to change the value of that smallest variable.I am passing the array via pointers and its challenging to me.Below is the getMaxMin() which gets the smallest values.Any help will be appreciated.</p>
  
  <pre><code> double **getMaxMin(double **scores){
      for(int i=0;i&lt;3;i++){
          double small=scores[i][0];
          for(int j=1;j&lt;8;j++){
              if(small&gt;scores[i][j]){
                  small=scores[i][j];
  
              }
          }
          cout&lt;&lt;small&lt;&lt;endl;
      }
      return scores;
  }
  </code></pre>