There is such code:
#include int main() { int size; std::cin >> size; size = size + 1; int tab3[size]; tab3[0] = 5; std
GCC provide's VLA's or variable length arrays. A better practice is to create a pointer and use the new keyword to allocate space. VLA's are not available in MSVC, so the second option is better for cross platform code
new