fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int opop()
  5. {
  6. cout << "op op";
  7. return 1;
  8. }
  9.  
  10. int hophop()
  11. {
  12. cout << "hop hop";
  13. return 0;
  14. }
  15.  
  16. int main()
  17. {
  18. int i = 10 > 5? opop() : hophop();
  19. return 0;
  20. }
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
op op