fork download
  1. #include <iostream>
  2.  
  3. int x;
  4.  
  5. int main(void) {
  6. std::cout << x << std::endl;
  7.  
  8. return 0;
  9. }
  10.  
  11. int Initialize() {
  12. x = 42;
  13. return 7;
  14. }
  15. int y = Initialize();
  16.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
42