在C++中,假设没有优化,那么以下两个程序最终会使用相同的内存分配机器代码吗?
int main() { int i; int *p; } int main() { int *p = new int; delete p; }
c++ memory memory-management
c++ ×1
memory ×1
memory-management ×1