title: How to calculate determinant of a matrix using pointers in c?
body: <p>I am writing a program to calculate determinant of a matrix using pointers with size up to 3x3 and I've started with writing the formula for 2x2 matrix.</p>
  
  <p>I got an error and it displayed "expression must have arithmetic type" in places of the parentheses at the beginnings of multiplied expressions.</p>
  
  <p>It seems that the program recognize the values as pointers instead of just multiplying values, but I'm not sure either. How do I fix it?</p>
  
  <pre><code>void determinant(int size, int matrix[][MAXSIZE])
  {
      int d;
      if(size == 2)
      {
          d = matrix * ((matrix + 1) + 1) - ((matrix + 1) + 0) * ((matrix + 0) + 1);
          printf("Determinant of your matrix: %d\n", d);
      }
  }
  </code></pre>