global vs static

Y Khan ykhanportland@yahoo.com
Mon Oct 2 16:46:00 GMT 2006


Hi,

I want to access a variable in a function and whose
value doesn't change when I re-enter the function. I
will be using that variable in that function only. I
have two options - global or static. Which one is
better?

Ykhan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gcc-help mailing list