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
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 国内一家公司招聘C++ Programmer的面试题:

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论