Memory Flashcards

(6 cards)

1
Q

static memory stores what type of variables?

A

global variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

when is static memory allocated?

A

before the program begins running which never is returned.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

local memory (automatic) stores whaT type of variables?

A

temporary local variables. Their memory is set aside

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

c++ can tell exactly how much space to set aside when ti starts a function. T OR F?

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Dynamic memory stores what kinds of variables?

A

newly allocated variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Do you ned to know the size of the array when delclaring a dynamic array?

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly