If I replace
static int count;
with
does this have the same meaning scopewise and memorywise?Code:namespace { int count; }
If I replace
static int count;
with
does this have the same meaning scopewise and memorywise?Code:namespace { int count; }
Yes; the former is a deprecated use of the static keyword, i.e. you should prefer the anonymous namespace.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.