fork(3) download
  1. #include <iostream>
  2.  
  3. int f() { std::cout << "f()\n"; return 1; }
  4. int g() { std::cout << "g()\n"; return 2; }
  5.  
  6. #define MAX(A, B) (A > B ? A : B)
  7.  
  8. int main() {
  9. MAX(f(), g());
  10. }
  11.  
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
f()
g()
g()