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.