KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Why does extern int n not compile when n is declared (in a different file) static int n , but works when declared int n ? (Both of these declarations were at file scope.) Basically, why is int n in file scope not the same as static int n in the same scope? Is it only in relation to extern? If so, what about extern am I missing?
Tags (comma-separated)
Save Edits
Cancel