Let suppose I have a one structure
struct A
{
int x;
int y;
}s;
Now suppose I want to share this structure variable i.e. 's' in multiple c files. How can I achieve this thing.
Should I use extern or I have to use the header file and include that header file in each c file