Hai,
This doubt may seem absurd for many of you but I think it really has a point. I've always wondered with programmers' usage of the 'extern'. I just want to make clear when to and where to use extern. Sometimes programmers use extern in a file X to refer to a variable declared in a different file say Y for using the variable in the file X. But I've seen case where programmers define a variable as extern in a file where the variable is never used.
It seems like I'm completely confused with extern. Don't mind if I've interpreted anything wrong in the statements above. I want a clear explanation. Please help.
Ekanth
This doubt may seem absurd for many of you but I think it really has a point. I've always wondered with programmers' usage of the 'extern'. I just want to make clear when to and where to use extern. Sometimes programmers use extern in a file X to refer to a variable declared in a different file say Y for using the variable in the file X. But I've seen case where programmers define a variable as extern in a file where the variable is never used.
It seems like I'm completely confused with extern. Don't mind if I've interpreted anything wrong in the statements above. I want a clear explanation. Please help.
Ekanth