I have this code:
file1.cpp
int foo()
{
static bool b = false;
... more code ...
}
This file compiles to a shared library, libfoo.so
and this library is linked to an application.
My question is, when the application restarts - it gets killed and started by system - the static variables are re-initialized, am I right?
Another words, after each application re-start, at first time running to function foo(), b's value is false.