fork download
  1. #include <iostream>
  2.  
  3. void foo()
  4. {
  5. volatile bool a;
  6. volatile bool b;
  7. std::cout << (a == true) << std::endl;
  8. std::cout << (b == true) << std::endl;
  9. std::cout << (a == b) << std::endl;
  10. }
  11.  
  12. void bar()
  13. {
  14. volatile int n = 0x12345678;
  15. }
  16.  
  17. int main() {
  18. bar();
  19. foo();
  20. }
  21.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
4
8
0