...
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!