I am having a function that holds the data(File1.cpp)and I want to extract that data and want to pass it to some other source file(file2.cpp).i am having a common header file in between the two different.cpp files where I had declared my External global variable.
My doubt is how can I extract the data from file1 to file2 through the global variable that is declared in the header file?