title: ANSI C Program: How to initialize numeric array when length is determined when program runs?
body: <p>Newbie to C. I'm writing an ANSI C program (on Linux using gcc 4.4.6) and need to know how to initilize a numeric array, such as int or double, where the length of the array is determined when the program is run? </p>
  
  <p>Does ANSI C allow one to declare variable, execute some code (wherein the length is determined), then declare additional variables (e.g. the arrays in question)?</p>
  
  <p>If not, how is this done in practice? Note the program compiles using <code>gcc -ansi ...</code> switch.</p>