Question: Suppose that one source file defines a variable i outside of any function int i; Also suppose that another file has a function f
Suppose that one source file defines a variable i outside of any function int i; Also suppose that another file has a function f that needs to access i void f(void) { } extern int i; What kind of scope does i have? In the first file, 1 has file scope. In the second file, i has block scope. 1 has file scope in both files 1 has block scope in both files The C language does not allow this situation.
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided below The image contains a multiplechoice que... View full answer
Get step-by-step solutions from verified subject matter experts
