Variable length arrays (VLA) in C and C++
Yes your reasoning is correct, that is how these different forms of array declarations and definitions are viewed by C and C++. As others already stated, VLA with a veritable variable length (non-const) in global scope is difficult to make sense. What would the evaluation order be, e.g if the the length expression would refer … Read more