变量内存分配

方法1:

char *a = new char[10];

delete a;

  

方法2:

char a[10] = "";

  

原文地址:https://www.cnblogs.com/laohehexiaohe/p/4268482.html