title: How to return matrix?
body: <p>I'm trying to make a Cramer-linear-solving, and I wrote a function that replaces a matrix column, just like that:</p>
  
  <pre><code>void replacecol(int c, int n, float mat_in[n][n], float vect_in[n],
          float mat_out[n][n])
  {
      int i, j;
  
      for (i = 0; i &lt; n; i++)
      {
          for (j = 0; j &lt; n; j++)
          {
              if (j == c)
              {
                  mat_out[i][j] = vect_in[j];
              }
              else
              {
                  mat_out[i][j] = mat_in[i][j];
              }
          }
      }
  }
  </code></pre>
  
  <p>But it is currently void, and I want it to return the mat_out with it's values, when I call this function... How could I do that??</p>