fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void somefunc(int a)
  6. {
  7. cout<<"somefunc1";
  8. }
  9.  
  10. void somefunc(int &b)
  11. {
  12. cout<<"somefunc2";
  13. }
  14.  
  15. int main()
  16. {
  17. const int c = 10;
  18. somefunc(c);
  19. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
somefunc1