can we give size of static array a variable

前端 未结 6 490
余生分开走
余生分开走 2021-01-04 11:21

hello every one i want to ask that i have read that we can declare dynamic array only by using pointer and using malloc or newlike

int * array = new int[strl         


        
6条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 12:12

    C99 support variable length array, it defines at c99, section 6.7.5.2.

提交回复
热议问题