Algorithm-Paradigms
October 12, 2023Digital-Logic-Design
October 12, 2023Programming
Question 189 |
An external variable
is globally accessible by all functions | |
has a declaration “extern” associated with it when declared within a function | |
will be initialized to 0 if not initialized | |
All of these |
Question 189 Explanation:
An external variable can be accessed by all the functions in all the modules of a program. It is a global variable. For a function to be able to use the variable, a declaration or the definition of the external variable must lie before the function definition in the source code. Or there must be a declaration of the variable, with the keyword extern, inside the function.
Correct Answer: D
Question 189 Explanation:
An external variable can be accessed by all the functions in all the modules of a program. It is a global variable. For a function to be able to use the variable, a declaration or the definition of the external variable must lie before the function definition in the source code. Or there must be a declaration of the variable, with the keyword extern, inside the function.
Subscribe
Login
0 Comments