by enriquto · 7y ago · 0 comments
Edit: you may answer: "use alloca then". But the syntax for alloca is not that convenient, and the semantics are very different. A common use for VLA is to declare a temporary array inside the body of a loop, this is not possible with alloca.
My problem is this:
void f(int n)
{
float t[n];
// what do I write here to check if everything is OK ?
...
}