fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void Func(int a = 1)
  6. {
  7. cout << a << endl;
  8. }
  9.  
  10. void Function(int b = 2)
  11. {
  12. cout << b << endl;
  13. }
  14.  
  15. int main(void)
  16. {
  17. Func();
  18. Func(3);
  19.  
  20. Function();
  21. Function(4);
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
1
3
2
4