new一个数组,delete释放内存时间:2022-01-31 17:43:01int *a = new int[4]; for(int i=0;i<4;i++) { a[i] = i; printf("a[%d]=%d\n", i, i); } delete[] a; return 0;