KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Why do some people declare make their variables static, like so: char baa(int x) { static char foo[] = " .. "; return foo[x ..]; } instead of: char baa(int x) { char foo[] = " .. "; return foo[x ..]; } It seems to be very common on Linux source codes applications. Is there any performance difference? If yes, might someone explain why? Thanks in advance.
Tags (comma-separated)
Save Edits
Cancel