title: for loop in objective-c - primitive array
body: <pre><code>int matrix[3][3] = {
        {1,2,3},
        {1,2,3},
        {1,2,3},
  }
  </code></pre>
  
  <p>How can I loop over it?</p>
  
  <p>Basically the length operation is my concern.</p>
  
  <pre><code>for (int i=0; XXXXX; i++) {
    for (int j=0; XXXX; j++) {
        int value = matrix[i][j];
   }
  }
  </code></pre>
  
  <p>EDIT: Is there a dynamic way of getting the array size? Something like <code>sizeof()</code>?</p>