...
Algorithm-Paradigms
October 12, 2023
Digital-Logic-Design
October 12, 2023
Algorithm-Paradigms
October 12, 2023
Digital-Logic-Design
October 12, 2023

Programming

Question 189
An external variable
A
is globally accessible by all functions
B
has a declaration “extern” associated with it when declared within a function
C
will be initialized to 0 if not initialized
D
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.

Leave a Reply

Your email address will not be published. Required fields are marked *