title: pointers and 2-D arrays in C
body: <p>I know how can I use pointers in C with the 1-D array. like the following:
  but what if we have 2-D arrays? how can I address them by pointers? 
  Thank you. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
    int dar[4] = {1,2,3,4};
  
    int *sar = NULL;
    sar = dar;
    for (int i = 0; i &lt; 4; i++) {
      printf("%d ", *(sar + i));
      }
  }
  </code></pre>