fork download
  1. #include <stdio.h>
  2.  
  3. extern "C" double f11(struct c* p, int i);
  4.  
  5. int main()
  6. {
  7. int i=9;
  8. struct c* p = NULL;
  9. double d = f11( p,i);
  10. }
  11.  
  12. class c
  13. {
  14. public:
  15. double f1(int i)
  16. {
  17. return 1.0;
  18. }
  19. };
  20.  
  21. extern "C" double f11(c* p, int i)
  22. {
  23. return p->f1(i);
  24. }
  25.  
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty