title: error: unknown type name struct
body: <p>I'm trying to solve Conway's Game of Life in C. I have written a .h file containing all my functions, yet I receive the following error within the header file:
  error: unknown type name "matrix"</p>
  
  <p>This is the beginning of the header file, which contains my struct declaration and the 1st function:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #define MAX 1000
  struct matrix{
      int Val, Next;
  };
  void intro_date(int nr_elem, matrix a[MAX][MAX]){
      int x,y;
      printf("Enter the line and the column of the element which you wish to read within the matrix: \n");
      while(nr_elem){
          scanf("%d%d",&amp;x,&amp;y);
          a[x][y].Val=1;
          --nr_elem;
      }
  }
  </code></pre>