if you read my article.......

hannibal (汉尼拔)
when you call int *a =new int(10);,a points to a first available memory unit 0x12345678 which stores 10.

when you call delete a, memry unit 0x12345678 becomes first available memory unit again.

when you call int *b= new (11);, b points to 0x12345678 again.

is that clear?

2001-8-11 -04:00

回到话题: 国内一家公司招聘C++ Programmer的面试题:

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论