D
drmario
Using Microsoft VC++2008 Windows XP
I don't understand, for all the reading I've just done on the subject, what
the difference there is. I mean if I declare a variable with global (file)
scope, I can get to it from anywhere in my program. From what I understand,
if I declare a static (and I think I have use external static?) variable
inside a function, the only way that differs from declaring it globally is
that it won't be instantiated until the program execution reaches it. I
can't see how that difference would possibly be useful, so what gives?
cheers,
Mario
I don't understand, for all the reading I've just done on the subject, what
the difference there is. I mean if I declare a variable with global (file)
scope, I can get to it from anywhere in my program. From what I understand,
if I declare a static (and I think I have use external static?) variable
inside a function, the only way that differs from declaring it globally is
that it won't be instantiated until the program execution reaches it. I
can't see how that difference would possibly be useful, so what gives?
cheers,
Mario