Posted By: boatman
Variable Length Arrays - 11/21/14 02:36
Hello
I seem to be unable to create an array that uses a variable for its length. This returns a syntax error. For example:
var HighCutoff = 48;
var my_arry[HighCutoff+1];
I also tried declaring the length variable as an int, not a var. Same result.
From my googling, this seems to be a limitation of Lite-C. Is that correct? Does anyone know of a workaround?
Thanks
I seem to be unable to create an array that uses a variable for its length. This returns a syntax error. For example:
var HighCutoff = 48;
var my_arry[HighCutoff+1];
I also tried declaring the length variable as an int, not a var. Same result.
From my googling, this seems to be a limitation of Lite-C. Is that correct? Does anyone know of a workaround?
Thanks