×

Loading...

Right answer is as follows: 1,3 are right, 2 is wrong. Since the second return a pointer which point to a temporary object. So when the function returns, the pointer becomes a suspending pointer.

guest (whois)
(#70838@0)
2001-5-15 -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: which one is right?

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