fork download
  1. #include <iostream>
  2. using namespace std;
  3. void foo(int a, int b, int c=0);
  4.  
  5. void foo(int a, int b, int c)
  6. {
  7. cout<<a<<" "<<b<<" "<<c<<"\n";
  8. }
  9. int main() {
  10. foo(1,2);
  11. foo(1,2,3);
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
1 2 0
1 2 3