• I have no idea where that is other than to know that it's up so let's just go ahead and assume that everything over here is the heap so what has just happened?

    我不知道它在哪里,只知道它在上面,我们假设这里所有的东西是堆,那么会发生什么呢?

    哈佛公开课 - 计算机科学课程节选

  • So, conceptually if you've ever wondered why you get access in all of your functions to global variables that's because they're not down here, they're at the very top of RAM and any function can access that RAM way up there, but for now the interesting player in the story is this thing called the heap.

    所以,如果你想知道为什么全局变量能在,所有的函数中使用,那是因为它们不在这下面,而是在内存的顶端,那样任意函数都可以在内存中使用它们,现在,这里面一个有用的角色是,叫做堆的东西。

    哈佛公开课 - 计算机科学课程节选

  • You just forget where the memory is that you asked for on the heap and it's not going to get cleaned up on the stack because malloc puts it somewhere else.

    你忘了你在堆中申请的内存在哪里,它将会被栈清除,因为malloc把它放在别的地方。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定