c++ initial value of dynamic array

后端 未结 6 714
清酒与你
清酒与你 2020-12-15 17:12

I need to dynamically create an array of integer. I\'ve found that when using a static array the syntax

int a [5]={0};

initializes correctl

6条回答
提交回复
热议问题