Static variables within functions in C++ - allocated even if function doesn't run?
- by John C
I've been reading up on C++ on the Internet, and here's one thing that I haven't been quite able to find an answer to.
I know that static variables used within functions are akin to globals, and that subsequent invocations of that function will have the static variable retain its value between calls.
However, if the function is never claled, does the static variable get allocated?
Thanks