Hi, I have a question to ask about passing static variables between two files.
Now I have one file A.c and a second file B.cpp
In A.c
static struct {
int
int
} static_variable
Now A.c has to call a function func()
in B.cpp, and this function has to modify the static_variable in A.c
In B.cpp
func() {
static_variable = ***;
}
I understand that B.cpp can't access the static variable in A.c, so if I really need to do so, what should I do?