When are variable-length arrays legal?

前端 未结 7 1100
南笙
南笙 2020-12-21 05:30

I\'m not a C++ expert, but as far as I know this code should fail due to size not being constant:

#include

using namespace std;         


        
相关标签:
7条回答
  • 2020-12-21 06:23

    That's a non-standard GCC extension - other compilers like Visual C++ don't support that.

    0 讨论(0)
提交回复
热议问题