void foo() {
static int x{0};
int y{0}; // this one
// dosomething like ++y
foo();
}
Is it possible to have variable 'y' initialized only once(when foo called first time, not in each call) but separate independent local copy of it in each stack frame. while possible to change it in each stack frame(like ++y).