第四章:
关于new, new为任意类型的实例分配并初始化内存,依据类型的不同从栈或者堆内分配空间。
即:new int() 分配的在栈上
参考网址: https://stackoverflow.com/questions/5746873/where-and-why-use-int-a-new-int/5746925#5746925
第四章:
关于new, new为任意类型的实例分配并初始化内存,依据类型的不同从栈或者堆内分配空间。
即:new int() 分配的在栈上
参考网址: https://stackoverflow.com/questions/5746873/where-and-why-use-int-a-new-int/5746925#5746925