title: Redefine / resize C array in Objective C?
body: <p>I have a C array in Objective C defined as follows:</p>
  
  <pre><code>id keysArray;
  </code></pre>
  
  <p>Then in an if block, i would like to redefine the array based on a condition:</p>
  
  <pre><code>if (somethingIsTrue){
      id keysArray[4][3];
  }
  else {
      id keysArray[6][1];
  }
  </code></pre>
  
  <p>Then outside of the if block, when i access the array, i get errors saying the <code>keysArray</code> does not exist.</p>
  
  <p>Thanks.</p>