// side1.cpp. example of a side effect #include #include using namespace std; void SomeFuntion(); int i; int main () { for (i=0; i<=5; i++) { SomeFunction(); } system("pause"); return 0; } void SomeFuntion() { cout << "Hi there"; i++; }