C/C++: Can I access static variables inside a function from outside? For example:
#include using namespace std; void f() { static int c
Variables inside a function scope cannot be accessed externally by name, but you can return a pointer or reference to it