Thursday, July 9, 2009

Whu static has a limited scope in c?

A staticr function doesn't become global. This is very handy if you want to use a function that is global to one unit but not the whole program. This avoids naming conflicts.





static has several meanings.Another meaning is for a variable that doesn't go on the stack but instead has an allocation that does not change.


No comments:

Post a Comment