We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
C51: My Program code is distributed over multiple files, I want to access a variable declared in another file.
My Program code is distributed over multiple files,
In that case, you are probably already using the extern specifier for some of your functions, I guess ?
You can use the extern specifier to access global variables defined in other files, too.
You probably mean defined in another file where storage is allocated for it.
Create an extern declaration for the variable.
c-faq.com/.../decldef.html