Reference to the Stackoverflow question title "variable length arrays in C++" we know that following is valid
void foo(int n) {
int values[n]; //Declare a variable length array
}
I have read that there exists a small run time penalty(in variable length arrays) here. Can somebody nicely explain what that is in this context?
I would also try my level best to locate the link where I read it.I apologize i could not mention it here.