How extern is used?

How extern can be used?

In which file the variable without extern to be declared?

Or there is no such restrictions?

More questions in this forum