fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define func1(x, y) ((x + y) * (x - y))
  5.  
  6. inline int func2(int x, int y) {
  7. return (x - y) * (x + y);
  8. }
  9.  
  10. int func3(int x, int y) {
  11. return func1(x, y);
  12. }
  13.  
  14. int main() {
  15.  
  16. cout << func1(5, 4) << endl;
  17.  
  18. cout << func2(5, 4) << endl;
  19.  
  20. cout << func3(5, 4) << endl;
  21.  
  22. return 0;
  23. }
  24.  
  25.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
9
9
9