正在加载图片...
Functions memory Every function needs a place to store its local variables Memory Collectively this storage is called location the stack This storage(memory aka "RAM) d2 Is a series of storage spaces and their numerical addresses Instead of using raw addresses we use variables to attach a name to an address all of the data/variables for a particular function call are located void aFunc(int x, int y) in a stack frame double d1, d2; int 13 Functions & Memory ◼ Every function needs a place to store its local variables. Collectively, this storage is called the stack ◼ This storage (memory aka “RAM”), is a series of storage spaces and their numerical addresses ◼ Instead of using raw addresses, we use variables to attach a name to an address ◼ All of the data/variables for a particular function call are located in a stack frame Memory location void aFunc(int x, int y) { double d1, d2; int i; } x y d2 d1 i
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有