title: Matrix Multiplication In C
body: <p>I'm trying to solve a matrix multiplication problem with C. Matrix sizes given in problem (2x2)
  I wrote this code but it doesn't print result as I expect. I think I'm missing a point about rules of C.</p>
  
  <p>What is my mistake in this code ?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main() {
      int matA[2][2]={0,1,2,3};
      int matB[2][2]={0,1,2,3};
      int matC[2][2];
      int i, j, k;
      for (i = 0; i &lt; 2; i++) {
          for(j = 0; j &lt; 2; j++) {
              for(k = 0; k &lt; 2; k++) {
                  matC[i][j] += matA[i][k] * matB[k][j];
              }
              printf("%d\n",matC[i][j]);
          } 
      }
  }
  </code></pre>
  
  <p>Printing Result:</p>
  
  <pre><code>2 
  3 
  4195350
  11
  </code></pre>