Which among the following is true for automatic variables in general?

Which among the following is true for automatic variables in general?
A. Automatic variables are invisible to called function
B. Automatic variables are always visible to the called function
C. Automatic variables can’t interact with the called function
D. Automatic variables can’t be variable
 
Answer: a
Explanation: The automatic variables are hidden from the called function. Even if passed by reference or address, the address of the variable is used and not the actual variable of calling function. Automatic variables can be const or variable.
 

Tìm kiếm

Back
Top