fork download
  1. void f(int=0) ;
  2.  
  3. int main() {
  4. f(); // ok
  5. (*f)(2);// ok
  6. (*f)();// ok c++11; error with c++14: too few arguments to function
  7. return 0;
  8. }
  9.  
  10. void f(int){}
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
Standard output is empty