declaring a variable-length array as a global variable in C
问题 How is it possible to declare a variable-length array as a global variable ? 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. 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