fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f(int x = 0) {
  5. cout << "x:" << x << endl;
  6. }
  7. int main() {
  8. f();
  9. int f(int x = 1);
  10. f();
  11. return 0;
  12. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
x:0
x:1