title: How to make a linked list out of a matrix?
body: <p>I have a small matrix with 3x3 dimension</p>
  
  <pre><code>ABC
  DEF
  GHI
  </code></pre>
  
  <p>Let's call it matrix[l][c] where l is for lines, and c for columns.
  I have this struct defined:</p>
  
  <pre><code>typedef struct cell{
      int *neighbours[4];
      int flag;
      char value;
  }NODE
  </code></pre>
  
  <p>I want to do a linked list based on the matrix. Neighbours would have to have the adress of the neighbours of that cell(up, down, right,left), flag it's defined 0 for all at first, and value is just the letter the cell has.</p>
  
  <p>How would i build this linked list to store the info for all the cells in the matrix? I must tell i have very little experience with linked lists. Never worked with them</p>
  
  <p>Thank you</p>