fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo() {
  5. volatile int i = 5;
  6. volatile int j = 3;
  7. volatile int k = 10;
  8. cout << i << " " << j << " " << k << endl;
  9. }
  10.  
  11. void bar() {
  12. volatile int i;
  13. volatile int j;
  14. volatile int k;
  15. cout << i << " " << j << " " << k << endl;
  16. }
  17.  
  18. int main() {
  19. foo();
  20. bar();
  21. return 0;
  22. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
5 3 10
5 3 10