Declarations and Initializations

Q1: Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.

A Yes

B No

ANS:B - No

The only way this can be achieved is to define the variable locally in main() instead of defining it globally and then passing it to the functions which need it.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.