How do you initialise a dynamic array in C++?

前端 未结 10 2151
梦毁少年i
梦毁少年i 2020-11-27 13:27

How do I achieve the dynamic equivalent of this static array initialisation:

char c[2] = {};  // Sets all members to \'\\0\';

In other word

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