#include using namespace std; void function1() { int localVar = 20 ; cout << "localVar:" << localVar << endl ; localVar++ ; } void function2() { static int staticVar = 20 ; cout << "staticVar:" << staticVar << endl ; staticVar++ ; } int main() { function1() ; function1() ; function1() ; function2() ; function2() ; function2() ; return 0; }