Non-const declaration of array

后端 未结 8 901
你的背包
你的背包 2020-12-19 05:11

I have been teaching myself programming for couple of years, and I was sure that if you need array declaration of a variable number you need to use malloc or

8条回答
  •  难免孤独
    2020-12-19 05:37

    It's okay to use the feature if you are using c99.

    You have to be very careful about the value of size. a large value will overflow your stack, and your process may go insane.

提交回复
热议问题