如何在 Visual Studio 2005 中释放动态分配的内存?
最佳答案
malloc
和 free
。
// Allocate the memory
int* a = malloc(sizeof(int) * 10);
// Free the memory.
free(a);
关于c - 如何在 Visual Studio 2005 中释放动态分配的内存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6264215/