fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int ADD(int n1, int n2 = 2);
  6.  
  7. int main(void)
  8. {
  9. cout << ADD(1);
  10. }
  11.  
  12. int ADD(int n1, int n2)
  13. {
  14. return n1 + n2;
  15. }
Success #stdin #stdout 0s 4700KB
stdin
Standard input is empty
stdout
3