I have a library that is written for me in C. In the library there is a variable that I need to use In foo.h (which is in C)
extern mystruct foobar;
In bar.h (which is in C++) I have the following class.
#include foo.h
class myfoo {
private:
mystruct foobar;
}
What I would like to know is if I create an array of myfoo, will each instance of foobar be referencing the same variable, or will each instance be its own unique instantiation of the myfoo that independent from the other myfoo foobars?