Memory Flashcards
(6 cards)
1
Q
static memory stores what type of variables?
A
global variables
2
Q
when is static memory allocated?
A
before the program begins running which never is returned.
3
Q
local memory (automatic) stores whaT type of variables?
A
temporary local variables. Their memory is set aside
4
Q
c++ can tell exactly how much space to set aside when ti starts a function. T OR F?
A
T
5
Q
Dynamic memory stores what kinds of variables?
A
newly allocated variables.
6
Q
Do you ned to know the size of the array when delclaring a dynamic array?
A
yes