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