fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void Func(int a)
  6. {
  7. cout << "int n = " << a << endl;
  8. }
  9.  
  10. void Func(int b, int c)
  11. {
  12. cout << "int b = " << b << ", int c = " << c << endl;
  13. }
  14.  
  15. void Func(char d)
  16. {
  17. cout << "char d = " << d << endl;
  18. }
  19.  
  20. void Func(void)
  21. {
  22. cout << "void" << endl;
  23. }
  24.  
  25. int main(void)
  26. {
  27. Func(1);
  28. Func(1, 2);
  29. Func('a');
  30. Func();
  31. return 0;
  32. }
Success #stdin #stdout 0s 4368KB
stdin
Standard input is empty
stdout
int n = 1
int b = 1, int c = 2
char d = a
void