我想知道以下场景中的行为:-
//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.
}
Run Code Online (Sandbox Code Playgroud)
如果 Process X 调用func()库的函数,会发生什么?