The memory for automatic variables ___________________

The memory for automatic variables ___________________
A. Have to be allocated and deallocated explicitly
B. Are allocated and deallocated automatically
C. Is never actually allocated
D. Are never safe
 
Answer: b
Explanation: The memory is allocated and deallocated automatically for the automatic variables. As soon as the variable comes in scope, the memory is allocated. The variables are destroyed as soon as those go out of scope.
 

Tìm kiếm

Back
Top