fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct struct_a {};
  5. struct struct_b {};
  6. struct struct_c {};
  7. struct struct_d {};
  8.  
  9. void function1(struct_a *a, struct_b *b, int i)
  10. {
  11. cout << "abc" << endl;
  12. }
  13.  
  14. void function1(struct_c *c, struct_d *d)
  15. {
  16. cout << "def" << endl;
  17. }
  18.  
  19. int main()
  20. {
  21. struct_a *a = (struct_a *)nullptr;
  22. struct_b *b = (struct_b *)nullptr;
  23. struct_c *c = (struct_c *)nullptr;
  24. struct_d *d = (struct_d *)nullptr;
  25. function1(a, b, 1);
  26. function1(c, d);
  27. return 0;
  28. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
abc
def