fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int g(){
  5. static int x = 4;
  6. return x;
  7. }
  8.  
  9. int main() {
  10. int x = 0;
  11. g();
  12. cout << x;
  13. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Standard output is empty