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