3 ms·
Not standard C++. If the [] was after the variable name, because it is the last member, most C++ compilers (GCC, Clang, and MSVC) have a non-standard extension
by lights0123 5y ago
Not standard C++.
If the [] was after the variable name, because it is the last member, most C++ compilers (GCC, Clang, and MSVC) have a non-standard extension: https://en.wikipedia.org/wiki/Flexible_array_member https://en.wikipedia.org/wiki/Flexible_array_member
- zabzonk 5y agoNot even non-standard C++ - my g++ compiler errors with: a.cpp:2:13: error: expected unqualified-id before '[' token
- lights0123 5y ago> If the [] was after the variable name