When I was reading about the array initialization in this tutorial. I found out this note.
type name [elements];
NOTE: The e
You may use :
int array[42];
but not
int n; std::cin >> n; int array[n]; // Not standard C++
the later is supported as extension by some compiler as VLA (Variable length array)