This might seem like a beginner\'s question, but I am interested in the way that a compiler normally creates arrays of variable-dimensions, like in the following program.
No version of C++ allows variable length array. Only C99 allows it.
GCC allows it as an extension.