Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.
Answer: B
Correct answer: No
A name with external linkage is visible to every function that declares it, and nothing distinguishes one function from another. What can be restricted is the file: declaring the variable static at file scope confines it to that translation unit. The granularity is the file, not the function.
Please log in or register to report this question.