The variable should not be destroyed when the function ends.

    1 answer 1

    void f(){ static int i; };