fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool a(){
  5. cout << "a" << endl;
  6. return true;
  7. }
  8.  
  9. bool b(){
  10. cout << "b" << endl;
  11. return false;
  12. }
  13.  
  14. bool c(){
  15. cout << "c" << endl;
  16. return false;
  17. }
  18.  
  19. int main() {
  20. cout << (a()||b()&&c());
  21. return 0;
  22. }
Success #stdin #stdout 0s 4320KB
stdin
Standard input is empty
stdout
a
1