do u mean
所在版块:求学狮城 发贴时间:2005-10-30 15:44

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
"delete [] arr" deletes each cell
and
"delete arr" deletes the pointer itself

after "delete [] arr", the pointer "arr" still exists
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

This page is intentionally left blank
 相关帖子 我要回复↙ ↗回到正文
why does not "g++ -Wall" give warning message when compiling the following code? icky   (660 bytes , 932reads )
delete array; not delete [] array; simon   (470 bytes , 648reads )
do u mean icky   (132 bytes , 387reads )
no la...as simon said, object vs primitive data type sarah   (0 bytes , 390reads )
。。。。。。ok... simon   (0 bytes , 289reads )
different btw 'object' and 'primitive data type' simon   (0 bytes , 343reads )
using linux/glibc? Segfault because you damaged the link list hash   (1304 bytes , 650reads )
a mistake hash   (233 bytes , 411reads )
but after icky   (103 bytes , 386reads )
The default libstdc++ operator new and delete use the libc malloc and free. hash   (86 bytes , 465reads )