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  

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

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below The image contains a multiplechoice que... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!