All variables declared within a block ____________________

Giang Phạm

New member
All variables declared within a block ____________________
A. Are not always automatic
B. Can be made non-automatic
C. Are static by default
D. Are automatic by default
 
Answer: d
Explanation: The variables declared inside a block, are make automatic by default. This is to ensure that the variables get destroyed when not required. The variables remain live only till those are required, the life is dependent on the scope of a variable.
 

Tìm kiếm

Back
Top