I wanted to know the behavior in the following scenario:-
//file1.c : Main file of a user-space process,say Process X.
int a; //GLobal variable in file1.c
func(); //Library function
//file2.c :Part of .so used by Process X.
int a;
void func()
{
a=0;//Access variable a.
}
If the Process X calls the function func()
of the library, what will happen?