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.
In my project I am using four source code files. There is one variable, which is used in all four files. When I declared this variable in one file and compiled the file, the compilation was successful. But when I tried to compile the second file, the compiler could not find this variable. Please guide me how to decare this variable so that it can be used in all four files and truly it will be global.
Get your C textbook, look up 'extern' and 'declaration' in the index. Read, understand, and do it. If this doesn't help you, you need a better textbook. And BTW: This question has nothing in particular to do with C51, so it's quite off-topic here...
Dear Hans-Bernhard Broeker, I am very much thankful for your hint. My problem is solved. I thank you again.