阅读背景:

关于动态数组的c++素数加示例的混淆

来源:互联网 

I was currently reading C++ prime plus in order to learn dynamic memory allocate. I tried a piece of code on the book, but after I added one line after it I was confused by what I got: I asked the computer to print out p3[2] after I freed the memory for p3 and the computer actually printed out the correct value for p3. But shouldn't it be NOT possible for it to print after you free the memory already? I was currently reading C++ prime plus in order




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: