I understand in VS all variables must be declared at the top of a block, but if I want a VLA, ie. if I wanted to do something like this:
int result = runalgorithm();
int vla[result];
the code above is invalid, because vla
must be declared at the top. What is a good solution for this, other than creating an arbitrarily large array?