Variable-length arrays in C++ are available as an extension in GCC. Compiling with all warnings should have alerted you to that fact (include -pedantic
).
More Related Contents:
- Invalid operands to binary expression while implementing vector [closed]
- For loop with an array
- Difficulties on atributting a array to another [closed]
- can’t extract data from a structure array c++ [closed]
- How would I implement Arrays into this code
- The array index doesnt show the character [closed]
- Initialization of all elements of an array to one default value in C++?
- How to return an array from a function?
- Can placement new for arrays be used in a portable way?
- Printing an array in C++?
- Comparing arrays for equality in C++
- c++ array assignment of multiple values
- What is the simplest way to convert array to vector?
- Common array length macro for C? [duplicate]
- How do you initialise a dynamic array in C++?
- pointer to array c++
- Finding smallest value in an array most efficiently
- Can std::begin work with array parameters and if so, how?
- How can I make `new[]` default-initialize the array of primitive types?
- What am I not understanding about getline+strings?
- Using sizeof on arrays passed as parameters [duplicate]
- How to copy a .txt file to a char array in c++
- Can you resize a C++ array after initialization? [duplicate]
- Copy 2D array using memcpy?
- NumPy style arrays for C++? [closed]
- Copying non null-terminated unsigned char array to std::string
- How to speed up matrix multiplication in C++?
- How to convert a byte array into double in C?
- C++ concatenate two int arrays into one larger array
- C++: Fastest method to check if all array elements are equal