#include <iostream>using namespace std; int g(){static int x = 4;cout << x;return x;} int main() { g(); g();}
Standard input is empty
44
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!