title: How to declare the size of an array at runtime in C?
body: <p>I basically want to the C of equivalent of this (well, just the part with the array, I don't need the class and string parsing and all that):</p>
  
  <pre><code>public class Example
  {
      static int[] foo;
      public static void main(String[] args)
      {
          int size = Integer.parseInt(args[0]);
          foo = new int[size]; // This part
      }
  }
  </code></pre>
  
  <p>Pardon my C ignorance. I've been corrupted by java ;)</p>