Hi, I've read in several places now that you can't define an array size at runtime - you need to use pointers and malloc/free to dynamically allocate arrays. The thing is I found this after I'd written a program that does just this, & works fine
i.e. declaring integer variables, reading those variables from a configuration file and defining both 1 and 2d array sizes with those variables. What gives? Why's it working? is this a platform/compiler specific feature that isn't ANSI, and is there any reason to change the program & use pointers to dynamically allocate the array size, as I said it (surprisingly for me ) works well as it is. Any insight gratefully received