title: declaring a variable-length array as a global variable in C
body: <p>How is it possible to declare a variable-length array as a global variable ? </p>
  
  <p>when variable length array is declared in a function before the length is scanned, it compiles but does not run. it gives segmentation fault. when the same declaration statement is shifted below the scanning statement, it runs fine.</p>
  
  <p>in case we want a variable length array globally available to all functions, how can we do that? problem here is the that the length of the array can only be scanned through some function only.</p>