fork download
  1. #include <iostream>
  2.  
  3. int foo(int a, int b)
  4. {
  5. return a + b;
  6. }
  7.  
  8. int main()
  9. {
  10. int (*foop) (int, int) = foo;
  11. std::cout << foop(5, 7) << '\n';
  12. }
Success #stdin #stdout 0s 2928KB
stdin
Standard input is empty
stdout
12