c++ - What's the difference between new char[10] and new char(10 ...

c++ - What's the difference between new char[10] and new char(10 ...

瀏覽:1173
日期:2026-04-20
char *a = new char[10]; ... delete [] a;. The above dynamically allocates and deallocates 10 contiguous memory slots that can be used to store chars....看更多