#include #include using namespace std; void f(); int main() { f(); f(); f(); return EXIT_SUCCESS; } //Count how many times this function has been called so far. void f() { static int i {0}; //Put 0 into i only the first time function is called. ++i; cout << "This is call number " << i << " to the function.\n"; }